Package org.openjdk.asmtools.jdis
Class AnnotationElement
- java.lang.Object
-
- org.openjdk.asmtools.jdis.AnnotationElement
-
public class AnnotationElement extends java.lang.ObjectBase class of all AnnotationElement entries
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationElement.Annot_AnnotValueAnnot_AnnotValue Annotation value that is a reference to an annotation.static classAnnotationElement.AnnotValueCPX_AnnotElem base class for an annotation value.static classAnnotationElement.Array_AnnotValueArray_AnnotElem Annotation value that is an array of annotation elements.static classAnnotationElement.CPX_AnnotValueCPX_AnnotElem Annotation value which is described by a single CPX entry (ie.static classAnnotationElement.CPX2_AnnotValueCPX_AnnotElem AnnotElements that contain 2 cpx indices (ie. enums).
-
Field Summary
Fields Modifier and Type Field Description protected ClassDataclsintname_cpxconstant pool index for the name of the Annotation ElementAnnotationElement.AnnotValuevalue
-
Constructor Summary
Constructors Constructor Description AnnotationElement(ClassData cls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(java.io.PrintWriter out, java.lang.String tab)voidread(java.io.DataInputStream in, boolean invisible)read read and resolve the method data called from ClassData. precondition: NumFields has already been read from the stream.static AnnotationElement.AnnotValuereadValue(java.io.DataInputStream in, ClassData cls, boolean invisible)read Static factory - creates Annotation Elements.java.lang.StringstringVal()java.lang.StringtoString()
-
-
-
Field Detail
-
name_cpx
public int name_cpx
constant pool index for the name of the Annotation Element
-
value
public AnnotationElement.AnnotValue value
-
cls
protected ClassData cls
-
-
Constructor Detail
-
AnnotationElement
public AnnotationElement(ClassData cls)
-
-
Method Detail
-
readValue
public static AnnotationElement.AnnotValue readValue(java.io.DataInputStream in, ClassData cls, boolean invisible) throws java.io.IOException
read Static factory - creates Annotation Elements.- Throws:
java.io.IOException
-
read
public void read(java.io.DataInputStream in, boolean invisible) throws java.io.IOExceptionread read and resolve the method data called from ClassData. precondition: NumFields has already been read from the stream.- Throws:
java.io.IOException
-
stringVal
public java.lang.String stringVal()
-
print
public void print(java.io.PrintWriter out, java.lang.String tab)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-