Class IndexBinaryTypeAnnotation
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.java.model.IndexBinaryTypeAnnotation
- All Implemented Interfaces:
IBinaryTypeAnnotation
-
Field Summary
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IBinaryTypeAnnotation
NO_TYPE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionIndexBinaryTypeAnnotation(int targetType, int info, int info2, int[] typePath, IBinaryAnnotation annotation) -
Method Summary
Modifier and TypeMethodDescriptionintApplicable 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[]toString()
-
Constructor Details
-
IndexBinaryTypeAnnotation
public IndexBinaryTypeAnnotation(int targetType, int info, int info2, int[] typePath, IBinaryAnnotation annotation)
-
-
Method Details
-
getAnnotation
- Specified by:
getAnnotationin interfaceIBinaryTypeAnnotation- Returns:
- the annotation
-
getTargetType
public int getTargetType()- Specified by:
getTargetTypein interfaceIBinaryTypeAnnotation- Returns:
- the target type, according to the constants in
AnnotationTargetTypeConstants
-
getTypePath
public int[] getTypePath()- Specified by:
getTypePathin interfaceIBinaryTypeAnnotation- Returns:
- the raw type path data, each pair of ints is a type path entry
-
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
-
toString
-