Package org.openjdk.asmtools.jasm
Class TypeAnnotationData
- java.lang.Object
-
- org.openjdk.asmtools.jasm.AnnotationData
-
- org.openjdk.asmtools.jasm.TypeAnnotationData
-
- All Implemented Interfaces:
Data
public class TypeAnnotationData extends AnnotationData
JVMS 4.7.20. type_annotation { u1 target_type; union { type_parameter_target; supertype_target; type_parameter_bound_target; empty_target; formal_parameter_target; throws_target; localvar_target; catch_target; offset_target; type_argument_target; } target_info; type_path target_path; u2 type_index; // // u2 num_element_value_pairs; { u2 element_name_index; element_value value; } element_value_pairs[num_element_value_pairs]; }
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openjdk.asmtools.jasm.AnnotationData
AnnotationData.ElemValuePair
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeAnnotationTargetInfoDatatargetInfoprotected TypeAnnotationTypes.ETargetTypetargetTypeprotected TypeAnnotationTypePathDatatypePath-
Fields inherited from class org.openjdk.asmtools.jasm.AnnotationData
annotationLength, elemValuePairs, invisible, typeCPX
-
-
Constructor Summary
Constructors Constructor Description TypeAnnotationData(Argument typeCPX, boolean invisible)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTypePathEntry(TypeAnnotationTypes.TypePathEntry path)intgetLength()java.lang.StringtoString()java.lang.StringtoString(int tabLevel)voidwrite(CheckedDataOutputStream out)-
Methods inherited from class org.openjdk.asmtools.jasm.AnnotationData
add
-
-
-
-
Field Detail
-
targetType
protected TypeAnnotationTypes.ETargetType targetType
-
targetInfo
protected TypeAnnotationTargetInfoData targetInfo
-
typePath
protected TypeAnnotationTypePathData typePath
-
-
Constructor Detail
-
TypeAnnotationData
public TypeAnnotationData(Argument typeCPX, boolean invisible)
-
-
Method Detail
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceData- Overrides:
getLengthin classAnnotationData
-
write
public void write(CheckedDataOutputStream out) throws java.io.IOException
- Specified by:
writein interfaceData- Overrides:
writein classAnnotationData- Throws:
java.io.IOException
-
addTypePathEntry
public void addTypePathEntry(TypeAnnotationTypes.TypePathEntry path)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(int tabLevel)
-
-