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
ConstructorDescriptionAnnotation
(byte[] classFileBytes, IConstantPool constantPool, int offset) Constructor for Annotation. -
Method Summary
Modifier and TypeMethodDescriptionAnswer back the components as described in the JVM specifications.int
Answer back the number of components as described in the JVM specifications.int
Answer back the type index as described in the JVM specifications.char[]
Answer back the type name as described in the JVM specifications.
-
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:IAnnotation
Answer back the type index as described in the JVM specifications.- Specified by:
getTypeIndex
in interfaceIAnnotation
- Returns:
- the type index
-
getComponentsNumber
public int getComponentsNumber()Description copied from interface:IAnnotation
Answer back the number of components as described in the JVM specifications.- Specified by:
getComponentsNumber
in interfaceIAnnotation
- Returns:
- the type index
-
getComponents
Description copied from interface:IAnnotation
Answer back the components as described in the JVM specifications. Answer an empty collection if none.- Specified by:
getComponents
in interfaceIAnnotation
- Returns:
- the components
-
getTypeName
public char[] getTypeName()Description copied from interface:IAnnotation
Answer back the type name as described in the JVM specifications.- Specified by:
getTypeName
in interfaceIAnnotation
- Returns:
- the type name
-