Module de.carne.mcd.jvmdecoder
Class AnnotationElement
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
-
- de.carne.mcd.jvmdecoder.classfile.attribute.annotation.AnnotationElement
-
- All Implemented Interfaces:
Printable
public class AnnotationElement extends ClassInfoElement
A single annotation element.
-
-
Field Summary
-
Fields inherited from class de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
classInfo
-
-
Constructor Summary
Constructors Constructor Description AnnotationElement(ClassInfo classInfo, int nameIndex, AnnotationElementValue value)Constructs a new AnnotationElement instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(ClassPrinter out, ClassContext context)Prints this instance.
-
-
-
Constructor Detail
-
AnnotationElement
public AnnotationElement(ClassInfo classInfo, int nameIndex, AnnotationElementValue value)
Constructs a new AnnotationElement instance.- Parameters:
classInfo- the ClassInfo instance this annotation attribute is part of.nameIndex- the element name index.value- the element value.
-
-
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.
-
-