Module de.carne.mcd.jvmdecoder
Class ShortAnnotationElement
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
-
- de.carne.mcd.jvmdecoder.classfile.attribute.annotation.AnnotationElementValue
-
- de.carne.mcd.jvmdecoder.classfile.attribute.annotation.ShortAnnotationElement
-
- All Implemented Interfaces:
Printable
public class ShortAnnotationElement extends AnnotationElementValue
Short annotation element.
-
-
Field Summary
Fields Modifier and Type Field Description static intTAGShort annotation element tag.protected intvalueIndex-
Fields inherited from class de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
classInfo
-
-
Constructor Summary
Constructors Constructor Description ShortAnnotationElement(ClassInfo classInfo, int valueIndex)Constructs a new ShortAnnotationElement} instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(ClassPrinter out, ClassContext context)Prints this instance.java.lang.StringtoString()
-
-
-
Field Detail
-
TAG
public static final int TAG
Short annotation element tag.- See Also:
- Constant Field Values
-
valueIndex
protected final int valueIndex
-
-
Constructor Detail
-
ShortAnnotationElement
public ShortAnnotationElement(ClassInfo classInfo, int valueIndex)
Constructs a new ShortAnnotationElement} instance.- Parameters:
classInfo- the ClassInfo instance this annotation attribute is part of.valueIndex- the annotation element value index.
-
-
Method Detail
-
print
public void print(ClassPrinter out, ClassContext context) throws java.io.IOException
Description copied from interface:PrintablePrints this instance.- Parameters:
out- the ClassPrinter instance to print to.context- the context of this print invocation.- Throws:
java.io.IOException- if an I/O error occurs.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-