Interface IBinaryTypeAnnotation
- All Known Implementing Classes:
IndexBinaryTypeAnnotation
,TypeAnnotationInfo
public interface IBinaryTypeAnnotation
This represents class file information about an annotation instance.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Applicable for target type 0x11(CLASS_TYPE_PARAMETER_BOUND), 0x12(METHOD_TYPE_PARAMETER_BOUND)int
Applicable for target type 0x16(METHOD_FORMAL_PARAMETER)int
Applicable for target type 0x10(CLASS_EXTENDS)int
int
Applicable for target type 0x17(THROWS)int
Applicable for target type 0x00(CLASS_TYPE_PARAMETER), 0x01(METHOD_TYPE_PARAMETER)int[]
-
Field Details
-
NO_TYPE_PATH
static final int[] NO_TYPE_PATH
-
-
Method Details
-
getAnnotation
IBinaryAnnotation getAnnotation()- Returns:
- the annotation
-
getTargetType
int getTargetType()- Returns:
- the target type, according to the constants in
AnnotationTargetTypeConstants
-
getTypePath
int[] getTypePath()- Returns:
- the raw type path data, each pair of ints is a type path entry
-
getSupertypeIndex
int getSupertypeIndex()Applicable for target type 0x10(CLASS_EXTENDS)- Returns:
- the supertype index. -1 (65535) for superclass, 0..n for superinterfaces
-
getTypeParameterIndex
int getTypeParameterIndex()Applicable for target type 0x00(CLASS_TYPE_PARAMETER), 0x01(METHOD_TYPE_PARAMETER)- Returns:
- the type parameter index (0 based)
-
getBoundIndex
int getBoundIndex()Applicable for target type 0x11(CLASS_TYPE_PARAMETER_BOUND), 0x12(METHOD_TYPE_PARAMETER_BOUND)- Returns:
- the bound index
-
getMethodFormalParameterIndex
int getMethodFormalParameterIndex()Applicable for target type 0x16(METHOD_FORMAL_PARAMETER)- Returns:
- the method formal parameter index
-
getThrowsTypeIndex
int getThrowsTypeIndex()Applicable for target type 0x17(THROWS)- Returns:
- the throws type index
-