org.aspectj.org.eclipse.jdt.internal.compiler.env
Interface IBinaryTypeAnnotation

All Known Implementing Classes:
TypeAnnotationInfo

public interface IBinaryTypeAnnotation

This represents class file information about an annotation instance.


Field Summary
static int[] NO_TYPE_PATH
           
 
Method Summary
 IBinaryAnnotation getAnnotation()
           
 int getBoundIndex()
          Applicable for target type 0x11(CLASS_TYPE_PARAMETER_BOUND), 0x12(METHOD_TYPE_PARAMETER_BOUND)
 int getMethodFormalParameterIndex()
          Applicable for target type 0x16(METHOD_FORMAL_PARAMETER)
 int getSupertypeIndex()
          Applicable for target type 0x10(CLASS_EXTENDS)
 int getTargetType()
           
 int getThrowsTypeIndex()
          Applicable for target type 0x17(THROWS)
 int getTypeParameterIndex()
          Applicable for target type 0x00(CLASS_TYPE_PARAMETER), 0x01(METHOD_TYPE_PARAMETER)
 int[] getTypePath()
           
 

Field Detail

NO_TYPE_PATH

static final int[] NO_TYPE_PATH
Method Detail

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