public interface IExtendedAnnotation extends IAnnotation
Modifier and Type | Method and Description |
---|---|
int |
getAnnotationTypeIndex()
Answer back the index in the given different situations.
|
int |
getExceptionTableIndex()
Answer back the exception table index when the target_type is EXCEPTION_PARAMETER.
|
int |
getLocalVariableRefenceInfoLength()
Answer back the local variable reference info table length of this entry as specified in
the JVM specifications.
|
ILocalVariableReferenceInfo[] |
getLocalVariableTable()
Answer back the local variable reference info table of this entry as specified in
the JVM specifications.
|
int |
getOffset()
Answer back the offset.
|
int |
getParameterIndex()
Answer back the method parameter index.
|
int |
getTargetType()
Answer back the target type as described in the JVM specifications.
|
int |
getTypeParameterBoundIndex()
Answer back the index of the bound of the type parameter of the method or class
The index is 0-based.
|
int |
getTypeParameterIndex()
Answer back the index of the type parameter of the class or method
The index is 0-based.
|
int[][] |
getTypePath()
Answer back the locations of the annotated type as described in the JVM specifications.
|
getComponents, getComponentsNumber, getTypeIndex, getTypeName
int getTargetType()
int getOffset()
target_type | offset description |
---|---|
0x43 (INSTANCE_OF), 0x44 (NEW), 0x45 (CONSTRUCTOR_REFERENCE), 0x46 (METHOD_REFERENCE) | The offset within the bytecodes of the instanceof bytecode for INSTANCE_OF,
the new bytecode for NEW and the implementing instruction for either a
CONSTRUCTOR_REFERENCE or METHOD_REFERENCE. |
0x47 (CAST), 0x48 (CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT), 0x49 (METHOD_INVOCATION_TYPE_ARGUMENT), 0x4A (CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT), 0x4B (METHOD_REFERENCE_TYPE_ARGUMENT) | The offset within the bytecodes of the new bytecode for constructor call, or the
relevant bytecode for method invocation or method reference. For CAST the offset may
point to the checkcast or another instruction as it is possible the cast
may have been discarded by the compiler if it were a no-op. |
int getExceptionTableIndex()
int getLocalVariableRefenceInfoLength()
This is defined only for annotations related to a local variable.
ILocalVariableReferenceInfo[] getLocalVariableTable()
This is defined only for annotations related to a local variable.
int getParameterIndex()
The index is 0-based.
int getTypeParameterIndex()
The index is 0-based.
int getTypeParameterBoundIndex()
The index is 0-based.
int getAnnotationTypeIndex()
The index is 0-based.
target_type | offset description |
---|---|
0x10 (CLASS_EXTENDS) | the index of the type in the clause: -1 (65535) is used if the annotation is on
the superclass type, and the value i is used if the annotation is on the i th
superinterface type (counting from zero). |
0x17 (THROWS) | the index of the exception type in the clause: the value i denotes an annotation of the
i th exception type (counting from zero). |
0x47 (CAST), 0x48 (CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT), 0x49 (METHOD_INVOCATION_TYPE_ARGUMENT), 0x4A (CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT), 0x4B (METHOD_REFERENCE_TYPE_ARGUMENT) | the type argument index in the expression |
int[][] getTypePath()
This is used for parameterized and array types.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.