Class Annotation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.Annotation
- All Implemented Interfaces:
IAnnotation
Default implementation of IAnnotation
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotation(byte[] classFileBytes, IConstantPool constantPool, int offset) Constructor for Annotation. -
Method Summary
Modifier and TypeMethodDescriptionAnswer back the components as described in the JVM specifications.intAnswer back the number of components as described in the JVM specifications.intAnswer back the type index as described in the JVM specifications.char[]Answer back the type name as described in the JVM specifications.Methods inherited from class ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptionprotected doubledoubleAt(byte[] reference, int relativeOffset, int structOffset) protected floatfloatAt(byte[] reference, int relativeOffset, int structOffset) protected inti1At(byte[] reference, int relativeOffset, int structOffset) protected inti2At(byte[] reference, int relativeOffset, int structOffset) protected inti4At(byte[] reference, int relativeOffset, int structOffset) protected longi8At(byte[] reference, int relativeOffset, int structOffset) protected intu1At(byte[] reference, int relativeOffset, int structOffset) protected intu2At(byte[] reference, int relativeOffset, int structOffset) protected intu4At(byte[] reference, int relativeOffset, int structOffset) Returns an 32 bit integer created of 4 bytes.protected char[]utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
-
Constructor Details
-
Annotation
public Annotation(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException Constructor for Annotation.- Throws:
ClassFormatException
-
-
Method Details
-
getTypeIndex
public int getTypeIndex()Description copied from interface:IAnnotationAnswer back the type index as described in the JVM specifications.- Specified by:
getTypeIndexin interfaceIAnnotation- Returns:
- the type index
-
getComponentsNumber
public int getComponentsNumber()Description copied from interface:IAnnotationAnswer back the number of components as described in the JVM specifications.- Specified by:
getComponentsNumberin interfaceIAnnotation- Returns:
- the type index
-
getComponents
Description copied from interface:IAnnotationAnswer back the components as described in the JVM specifications. Answer an empty collection if none.- Specified by:
getComponentsin interfaceIAnnotation- Returns:
- the components
-
getTypeName
public char[] getTypeName()Description copied from interface:IAnnotationAnswer back the type name as described in the JVM specifications.- Specified by:
getTypeNamein interfaceIAnnotation- Returns:
- the type name
-