public class AnnotationComponentValue extends ClassFileStruct implements IAnnotationComponentValue
ANNOTATION_TAG, ARRAY_TAG, BOOLEAN_TAG, BYTE_TAG, CHAR_TAG, CLASS_TAG, DOUBLE_TAG, ENUM_TAG, FLOAT_TAG, INTEGER_TAG, LONG_TAG, SHORT_TAG, STRING_TAG| Constructor and Description |
|---|
AnnotationComponentValue(byte[] classFileBytes,
IConstantPool constantPool,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
IAnnotationComponentValue[] |
getAnnotationComponentValues()
Returns the annotation component values as described in the JVM specifications
if the tag item is '['.
|
IAnnotation |
getAnnotationValue()
Returns the annotation value as described in the JVM specifications
if the tag item is '@'.
|
IConstantPoolEntry |
getClassInfo()
Returns the class info as described in the JVM specifications
if the tag item is 'c'.
|
int |
getClassInfoIndex()
Returns the class info index as described in the JVM specifications
if the tag item is 'c'.
|
IConstantPoolEntry |
getConstantValue()
Returns the constant value as described in the JVM specifications
if the tag item is one of 'B', 'C', 'D', 'F', 'I', 'J', 'S', 'Z', or 's'.
|
int |
getConstantValueIndex()
Returns the constant value index as described in the JVM specifications
if the tag item is one of 'B', 'C', 'D', 'F', 'I', 'J', 'S', 'Z', or 's'.
|
char[] |
getEnumConstantName()
Returns the simple name of the enum constant represented
by this annotation component value as described in the JVM specifications
if the tag item is 'e'.
|
int |
getEnumConstantNameIndex()
Returns the utf8 constant index as described in the JVM specifications
if the tag item is 'e'.
|
char[] |
getEnumConstantTypeName()
Returns the binary name of the type of the enum constant represented
by this annotation component value as described in the JVM specifications
if the tag item is 'e'.
|
int |
getEnumConstantTypeNameIndex()
Returns the utf8 constant index as described in the JVM specifications
if the tag item is 'e'.
|
int |
getTag()
Returns the tag as described in the JVM specifications.
|
int |
getValuesNumber()
Returns the number of values as described in the JVM specifications
if the tag item is '['.
|
public AnnotationComponentValue(byte[] classFileBytes,
IConstantPool constantPool,
int offset)
throws ClassFormatException
ClassFormatExceptionpublic IAnnotationComponentValue[] getAnnotationComponentValues()
IAnnotationComponentValuegetAnnotationComponentValues in interface IAnnotationComponentValuepublic IAnnotation getAnnotationValue()
IAnnotationComponentValuegetAnnotationValue in interface IAnnotationComponentValuepublic IConstantPoolEntry getClassInfo()
IAnnotationComponentValuegetClassInfo in interface IAnnotationComponentValuepublic int getClassInfoIndex()
IAnnotationComponentValuegetClassInfoIndex in interface IAnnotationComponentValuepublic IConstantPoolEntry getConstantValue()
IAnnotationComponentValuegetConstantValue in interface IAnnotationComponentValuepublic int getConstantValueIndex()
IAnnotationComponentValuegetConstantValueIndex in interface IAnnotationComponentValuepublic char[] getEnumConstantName()
IAnnotationComponentValuegetEnumConstantName in interface IAnnotationComponentValuepublic int getEnumConstantNameIndex()
IAnnotationComponentValuegetEnumConstantNameIndex in interface IAnnotationComponentValuepublic char[] getEnumConstantTypeName()
IAnnotationComponentValuegetEnumConstantTypeName in interface IAnnotationComponentValuepublic int getEnumConstantTypeNameIndex()
IAnnotationComponentValuegetEnumConstantTypeNameIndex in interface IAnnotationComponentValuepublic int getTag()
IAnnotationComponentValuegetTag in interface IAnnotationComponentValuepublic int getValuesNumber()
IAnnotationComponentValuegetValuesNumber in interface IAnnotationComponentValue