Klasse AnnotationComponentValue
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.AnnotationComponentValue
- Alle implementierten Schnittstellen:
IAnnotationComponentValue
Default implementation of IAnnotationComponent
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.util.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
-
Konstruktorübersicht
KonstruktorBeschreibungAnnotationComponentValue
(byte[] classFileBytes, IConstantPool constantPool, int offset) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the annotation component values as described in the JVM specifications if the tag item is '['.Returns the annotation value as described in the JVM specifications if the tag item is '@'.Returns the class info as described in the JVM specifications if the tag item is 'c'.int
Returns the class info index as described in the JVM specifications if the tag item is 'c'.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
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[]
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
Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'.char[]
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
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
Returns the number of values as described in the JVM specifications if the tag item is '['.
-
Konstruktordetails
-
AnnotationComponentValue
public AnnotationComponentValue(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException - Löst aus:
ClassFormatException
-
-
Methodendetails
-
getAnnotationComponentValues
Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the annotation component values as described in the JVM specifications if the tag item is '['. Returns null otherwise.- Angegeben von:
getAnnotationComponentValues
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the annotation component values
-
getAnnotationValue
Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the annotation value as described in the JVM specifications if the tag item is '@'. Returns null otherwise.- Angegeben von:
getAnnotationValue
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the attribute value
-
getClassInfo
Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the class info as described in the JVM specifications if the tag item is 'c'. Returns null otherwise.- Angegeben von:
getClassInfo
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the class info
-
getClassInfoIndex
public int getClassInfoIndex()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the class info index as described in the JVM specifications if the tag item is 'c'. Returns null otherwise.- Angegeben von:
getClassInfoIndex
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the class info index
-
getConstantValue
Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
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'. Returns null otherwise.- Angegeben von:
getConstantValue
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the constant value
-
getConstantValueIndex
public int getConstantValueIndex()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
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'. The value is unspecified otherwise.- Angegeben von:
getConstantValueIndex
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the constant value index
-
getEnumConstantName
public char[] getEnumConstantName()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
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'. Returns null otherwise.- Angegeben von:
getEnumConstantName
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the enum constant
-
getEnumConstantNameIndex
public int getEnumConstantNameIndex()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'. The value is unspecified otherwise.- Angegeben von:
getEnumConstantNameIndex
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the enum constant index
-
getEnumConstantTypeName
public char[] getEnumConstantTypeName()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
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'. Returns null otherwise.- Angegeben von:
getEnumConstantTypeName
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the enum constant
-
getEnumConstantTypeNameIndex
public int getEnumConstantTypeNameIndex()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the utf8 constant index as described in the JVM specifications if the tag item is 'e'. The value is unspecified otherwise.- Angegeben von:
getEnumConstantTypeNameIndex
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the enum constant index
-
getTag
public int getTag()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the tag as described in the JVM specifications.- Angegeben von:
getTag
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the tag
-
getValuesNumber
public int getValuesNumber()Beschreibung aus Schnittstelle kopiert:IAnnotationComponentValue
Returns the number of values as described in the JVM specifications if the tag item is '['. The value is unspecified otherwise.- Angegeben von:
getValuesNumber
in SchnittstelleIAnnotationComponentValue
- Gibt zurück:
- the number of values
-