Module de.carne.mcd.jvmdecoder
Class CodeAttribute
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
-
- de.carne.mcd.jvmdecoder.classfile.attribute.Attribute
-
- de.carne.mcd.jvmdecoder.classfile.attribute.CodeAttribute
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEThe Code attribute name.-
Fields inherited from class de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
classInfo
-
-
Constructor Summary
Constructors Constructor Description CodeAttribute(ClassInfo classInfo, java.nio.channels.SeekableByteChannel code)Constructs a new CodeAttribute instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(ClassPrinter out, ClassContext context)Prints this instance.
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
The Code attribute name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CodeAttribute
public CodeAttribute(ClassInfo classInfo, java.nio.channels.SeekableByteChannel code)
Constructs a new CodeAttribute instance.- Parameters:
classInfo- the ClassInfo instance this attribute is part of.code- the bytecode data
-
-
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.
-
-