Class TypeAnnotationInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationInfo
- All Implemented Interfaces:
IBinaryTypeAnnotation
The TypeAnnotationInfo class does not currently support type annotations within code
blocks (those that have a target type of 0x40 and higher) - it is not yet clear that
these need to be accessible.
-
Field Summary
Fields inherited from interface IBinaryTypeAnnotation
NO_TYPE_PATH -
Method Summary
Modifier and TypeMethodDescriptionbooleanintApplicable for target type 0x11(CLASS_TYPE_PARAMETER_BOUND), 0x12(METHOD_TYPE_PARAMETER_BOUND)intApplicable for target type 0x16(METHOD_FORMAL_PARAMETER)intApplicable for target type 0x10(CLASS_EXTENDS)intintApplicable for target type 0x17(THROWS)intApplicable for target type 0x00(CLASS_TYPE_PARAMETER), 0x01(METHOD_TYPE_PARAMETER)int[]inthashCode()protected voidprotected voidreset()toString()Methods inherited from class ClassFileStruct
doubleAt, floatAt, i4At, i8At, u1At, u2At, u4At, utf8AtModifier and TypeMethodDescriptiondoubledoubleAt(int relativeOffset) floatfloatAt(int relativeOffset) inti4At(int relativeOffset) longi8At(int relativeOffset) intu1At(int relativeOffset) intu2At(int relativeOffset) intu4At(int relativeOffset) Returns an 32 bit integer created of 4 bytes.char[]utf8At(int relativeOffset, int bytesAvailable)
-
Method Details
-
getAnnotation
- Specified by:
getAnnotationin interfaceIBinaryTypeAnnotation- Returns:
- the annotation
-
initialize
protected void initialize() -
reset
protected void reset()- Overrides:
resetin classClassFileStruct
-
toString
-
getTargetType
public int getTargetType()- Specified by:
getTargetTypein interfaceIBinaryTypeAnnotation- Returns:
- the target type, according to the constants in
AnnotationTargetTypeConstants
-
getSupertypeIndex
public int getSupertypeIndex()Description copied from interface:IBinaryTypeAnnotationApplicable for target type 0x10(CLASS_EXTENDS)- Specified by:
getSupertypeIndexin interfaceIBinaryTypeAnnotation- Returns:
- the supertype index. -1 (65535) for superclass, 0..n for superinterfaces
-
getTypeParameterIndex
public int getTypeParameterIndex()Description copied from interface:IBinaryTypeAnnotationApplicable for target type 0x00(CLASS_TYPE_PARAMETER), 0x01(METHOD_TYPE_PARAMETER)- Specified by:
getTypeParameterIndexin interfaceIBinaryTypeAnnotation- Returns:
- the type parameter index (0 based)
-
getBoundIndex
public int getBoundIndex()Description copied from interface:IBinaryTypeAnnotationApplicable for target type 0x11(CLASS_TYPE_PARAMETER_BOUND), 0x12(METHOD_TYPE_PARAMETER_BOUND)- Specified by:
getBoundIndexin interfaceIBinaryTypeAnnotation- Returns:
- the bound index
-
getMethodFormalParameterIndex
public int getMethodFormalParameterIndex()Description copied from interface:IBinaryTypeAnnotationApplicable for target type 0x16(METHOD_FORMAL_PARAMETER)- Specified by:
getMethodFormalParameterIndexin interfaceIBinaryTypeAnnotation- Returns:
- the method formal parameter index
-
getThrowsTypeIndex
public int getThrowsTypeIndex()Description copied from interface:IBinaryTypeAnnotationApplicable for target type 0x17(THROWS)- Specified by:
getThrowsTypeIndexin interfaceIBinaryTypeAnnotation- Returns:
- the throws type index
-
getTypePath
public int[] getTypePath()- Specified by:
getTypePathin interfaceIBinaryTypeAnnotation- Returns:
- the raw type path data, each pair of ints is a type path entry
-
hashCode
-
equals
-