Class TypeAnnotationGen
- java.lang.Object
-
- org.aspectj.apache.bcel.classfile.annotation.TypeAnnotationGen
-
public class TypeAnnotationGen extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intCASTstatic intCLASS_EXTENDSstatic intCLASS_TYPE_PARAMETERstatic intCLASS_TYPE_PARAMETER_BOUNDstatic intCONSTRUCTOR_INVOCATION_TYPE_ARGUMENTstatic intCONSTRUCTOR_REFERENCEstatic intCONSTRUCTOR_REFERENCE_TYPE_ARGUMENTstatic intEXCEPTION_PARAMETERstatic intFIELDstatic intINSTANCEOFstatic intLOCAL_VARIABLEstatic intMETHOD_FORMAL_PARAMETERstatic intMETHOD_INVOCATION_TYPE_ARGUMENTstatic intMETHOD_RECEIVERstatic intMETHOD_REFERENCEstatic intMETHOD_REFERENCE_TYPE_ARGUMENTstatic intMETHOD_RETURNstatic intMETHOD_TYPE_PARAMETERstatic intMETHOD_TYPE_PARAMETER_BOUNDstatic intNEWstatic TypeAnnotationGen[]NO_TYPE_ANNOTATIONSstatic int[]NO_TYPE_PATHstatic intRESOURCE_VARIABLEstatic intTHROWSstatic intTYPE_PATH_ENTRY_KIND_ARRAYstatic intTYPE_PATH_ENTRY_KIND_INNER_TYPEstatic intTYPE_PATH_ENTRY_KIND_TYPE_ARGUMENTstatic intTYPE_PATH_ENTRY_KIND_WILDCARD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(DataOutputStream dos)AnnotationGengetAnnotation()intgetBoundIndex()intgetExceptionTableIndex()int[]getLocalVarTarget()intgetMethodFormalParameterIndex()intgetOffset()intgetSupertypeIndex()intgetTargetType()intgetThrowsTypeIndex()intgetTypeArgumentIndex()intgetTypeParameterIndex()int[]getTypePath()StringgetTypePathString()static TypeAnnotationGenread(DataInputStream dis, ConstantPool cpool, boolean isVisible)static int[]readLocalVarTarget(DataInputStream dis)static StringtoTypePathString(int[] typepath)
-
-
-
Field Detail
-
NO_TYPE_ANNOTATIONS
public static final TypeAnnotationGen[] NO_TYPE_ANNOTATIONS
-
NO_TYPE_PATH
public static final int[] NO_TYPE_PATH
-
CLASS_TYPE_PARAMETER
public static final int CLASS_TYPE_PARAMETER
- See Also:
- Constant Field Values
-
METHOD_TYPE_PARAMETER
public static final int METHOD_TYPE_PARAMETER
- See Also:
- Constant Field Values
-
CLASS_EXTENDS
public static final int CLASS_EXTENDS
- See Also:
- Constant Field Values
-
CLASS_TYPE_PARAMETER_BOUND
public static final int CLASS_TYPE_PARAMETER_BOUND
- See Also:
- Constant Field Values
-
METHOD_TYPE_PARAMETER_BOUND
public static final int METHOD_TYPE_PARAMETER_BOUND
- See Also:
- Constant Field Values
-
FIELD
public static final int FIELD
- See Also:
- Constant Field Values
-
METHOD_RETURN
public static final int METHOD_RETURN
- See Also:
- Constant Field Values
-
METHOD_RECEIVER
public static final int METHOD_RECEIVER
- See Also:
- Constant Field Values
-
METHOD_FORMAL_PARAMETER
public static final int METHOD_FORMAL_PARAMETER
- See Also:
- Constant Field Values
-
THROWS
public static final int THROWS
- See Also:
- Constant Field Values
-
LOCAL_VARIABLE
public static final int LOCAL_VARIABLE
- See Also:
- Constant Field Values
-
RESOURCE_VARIABLE
public static final int RESOURCE_VARIABLE
- See Also:
- Constant Field Values
-
EXCEPTION_PARAMETER
public static final int EXCEPTION_PARAMETER
- See Also:
- Constant Field Values
-
INSTANCEOF
public static final int INSTANCEOF
- See Also:
- Constant Field Values
-
NEW
public static final int NEW
- See Also:
- Constant Field Values
-
CONSTRUCTOR_REFERENCE
public static final int CONSTRUCTOR_REFERENCE
- See Also:
- Constant Field Values
-
METHOD_REFERENCE
public static final int METHOD_REFERENCE
- See Also:
- Constant Field Values
-
CAST
public static final int CAST
- See Also:
- Constant Field Values
-
CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT
public static final int CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT
- See Also:
- Constant Field Values
-
METHOD_INVOCATION_TYPE_ARGUMENT
public static final int METHOD_INVOCATION_TYPE_ARGUMENT
- See Also:
- Constant Field Values
-
CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT
public static final int CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT
- See Also:
- Constant Field Values
-
METHOD_REFERENCE_TYPE_ARGUMENT
public static final int METHOD_REFERENCE_TYPE_ARGUMENT
- See Also:
- Constant Field Values
-
TYPE_PATH_ENTRY_KIND_ARRAY
public static final int TYPE_PATH_ENTRY_KIND_ARRAY
- See Also:
- Constant Field Values
-
TYPE_PATH_ENTRY_KIND_INNER_TYPE
public static final int TYPE_PATH_ENTRY_KIND_INNER_TYPE
- See Also:
- Constant Field Values
-
TYPE_PATH_ENTRY_KIND_WILDCARD
public static final int TYPE_PATH_ENTRY_KIND_WILDCARD
- See Also:
- Constant Field Values
-
TYPE_PATH_ENTRY_KIND_TYPE_ARGUMENT
public static final int TYPE_PATH_ENTRY_KIND_TYPE_ARGUMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public static TypeAnnotationGen read(DataInputStream dis, ConstantPool cpool, boolean isVisible) throws IOException
- Throws:
IOException
-
readLocalVarTarget
public static int[] readLocalVarTarget(DataInputStream dis) throws IOException
- Throws:
IOException
-
dump
public void dump(DataOutputStream dos) throws IOException
- Throws:
IOException
-
getSupertypeIndex
public int getSupertypeIndex()
-
getOffset
public int getOffset()
-
getTypeParameterIndex
public int getTypeParameterIndex()
-
getTypeArgumentIndex
public int getTypeArgumentIndex()
-
getBoundIndex
public int getBoundIndex()
-
getMethodFormalParameterIndex
public int getMethodFormalParameterIndex()
-
getThrowsTypeIndex
public int getThrowsTypeIndex()
-
getLocalVarTarget
public int[] getLocalVarTarget()
-
getExceptionTableIndex
public int getExceptionTableIndex()
-
getTargetType
public int getTargetType()
-
getAnnotation
public AnnotationGen getAnnotation()
-
getTypePath
public int[] getTypePath()
-
getTypePathString
public String getTypePathString()
-
toTypePathString
public static String toTypePathString(int[] typepath)
-
-