public class Annotation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Annotation.EnumConstValue |
static class |
Annotation.MemberValue |
Modifier and Type | Field and Description |
---|---|
static char |
MEMBER_TAG_ANNOTATION
Member value is represented by an Annotation
|
static char |
MEMBER_TAG_ARRAY
Member value is represented by a MemberValue array
|
static char |
MEMBER_TAG_BOOLEAN
Member value is represented by a ConstantIntegerInfo
|
static char |
MEMBER_TAG_BYTE
Member value is represented by a ConstantIntegerInfo
|
static char |
MEMBER_TAG_CHAR
Member value is represented by a ConstantIntegerInfo
|
static char |
MEMBER_TAG_CLASS
Member value is represented by a ConstantClassInfo
|
static char |
MEMBER_TAG_DOUBLE
Member value is represented by a ConstantDoubleInfo
|
static char |
MEMBER_TAG_ENUM
Member value is represented by an EnumConstValue
|
static char |
MEMBER_TAG_FLOAT
Member value is represented by a ConstantFloatInfo
|
static char |
MEMBER_TAG_INT
Member value is represented by a ConstantIntegerInfo
|
static char |
MEMBER_TAG_LONG
Member value is represented by a ConstantLongInfo
|
static char |
MEMBER_TAG_SHORT
Member value is represented by a ConstantIntegerInfo
|
static char |
MEMBER_TAG_STRING
Member value is represented by a ConstantUTFInfo
|
Constructor and Description |
---|
Annotation(ConstantPool cp) |
Annotation(ConstantPool cp,
DataInput din) |
public static final char MEMBER_TAG_BOOLEAN
public static final char MEMBER_TAG_BYTE
public static final char MEMBER_TAG_SHORT
public static final char MEMBER_TAG_CHAR
public static final char MEMBER_TAG_INT
public static final char MEMBER_TAG_LONG
public static final char MEMBER_TAG_FLOAT
public static final char MEMBER_TAG_DOUBLE
public static final char MEMBER_TAG_STRING
public static final char MEMBER_TAG_CLASS
public static final char MEMBER_TAG_ENUM
public static final char MEMBER_TAG_ARRAY
public static final char MEMBER_TAG_ANNOTATION
public Annotation(ConstantPool cp)
public Annotation(ConstantPool cp, DataInput din) throws IOException
IOException
public ConstantUTFInfo getTypeConstant()
public TypeDesc getType()
public void setTypeConstant(ConstantUTFInfo type)
public void setType(TypeDesc type)
public Map<String,Annotation.MemberValue> getMemberValues()
public void putMemberValue(String name, Annotation.MemberValue mv)
public void putMemberValue(String name, boolean value)
public void putMemberValue(String name, byte value)
public void putMemberValue(String name, short value)
public void putMemberValue(String name, char value)
public void putMemberValue(String name, int value)
public void putMemberValue(String name, long value)
public void putMemberValue(String name, float value)
public void putMemberValue(String name, double value)
public void putMemberValue(String name, Annotation.MemberValue[] value)
public void putMemberValue(String name, Annotation value)
makeAnnotation()
public Annotation.MemberValue makeMemberValue(boolean value)
public Annotation.MemberValue makeMemberValue(byte value)
public Annotation.MemberValue makeMemberValue(short value)
public Annotation.MemberValue makeMemberValue(char value)
public Annotation.MemberValue makeMemberValue(int value)
public Annotation.MemberValue makeMemberValue(long value)
public Annotation.MemberValue makeMemberValue(float value)
public Annotation.MemberValue makeMemberValue(double value)
public Annotation.MemberValue makeMemberValue(String value)
public Annotation.MemberValue makeMemberValue(TypeDesc value)
public Annotation.MemberValue makeMemberValue(TypeDesc enumType, String enumName)
public Annotation.MemberValue makeMemberValue(Annotation.MemberValue[] value)
public Annotation.MemberValue makeMemberValue(Annotation value)
makeAnnotation()
public Annotation makeAnnotation()
public int getLength()
public void writeTo(DataOutput dout) throws IOException
IOException
Copyright © 2004-2015 Cojen. All Rights Reserved.