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