Class ParameterAnnotation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ParameterAnnotation
- All Implemented Interfaces:
IParameterAnnotation
Default implementation of IParameterAnnotation
-
Constructor Summary
ConstructorDescriptionParameterAnnotation(byte[] classFileBytes, IConstantPool constantPool, int offset)
Constructor for Annotation. -
Method Summary
Modifier and TypeMethodDescriptionAnswer back the annotations as described in the JVM specifications.int
Answer back the number of annotations as described in the JVM specifications.
-
Constructor Details
-
ParameterAnnotation
public ParameterAnnotation(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatExceptionConstructor for Annotation.- Parameters:
classFileBytes
-constantPool
-offset
-- Throws:
ClassFormatException
-
-
Method Details
-
getAnnotations
Description copied from interface:IParameterAnnotation
Answer back the annotations as described in the JVM specifications. Answers an empty collection if none.- Specified by:
getAnnotations
in interfaceIParameterAnnotation
- Returns:
- the annotations
-
getAnnotationsNumber
public int getAnnotationsNumber()Description copied from interface:IParameterAnnotation
Answer back the number of annotations as described in the JVM specifications.- Specified by:
getAnnotationsNumber
in interfaceIParameterAnnotation
- Returns:
- the number of annotations
-