Package org.openjdk.asmtools.jdis
Class CodeData
- java.lang.Object
-
- org.openjdk.asmtools.jdis.Indenter
-
- org.openjdk.asmtools.jdis.CodeData
-
public class CodeData extends Indenter
Code data for a code attribute in method members in a class of the Java Disassembler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeData.LocVarData
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<AttrData>
attrs
The remaining attributes of this classprotected ClassData
cls
protected byte[]
code
Raw byte array for the byte codesprotected int
max_locals
Limit for the number of local varsprotected int
max_stack
Limit for the stack sizeprotected MethodData
meth
-
Constructor Summary
Constructors Constructor Description CodeData(MethodData meth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.openjdk.asmtools.jdis.iAtt
get_iAtt(int pc)
void
print()
printvoid
read(java.io.DataInputStream in, int codeattrlen)
read-
Methods inherited from class org.openjdk.asmtools.jdis.Indenter
decreaseIndent, getIndentString, increaseIndent, indent, setIndent
-
-
-
-
Field Detail
-
code
protected byte[] code
Raw byte array for the byte codes
-
max_stack
protected int max_stack
Limit for the stack size
-
max_locals
protected int max_locals
Limit for the number of local vars
-
attrs
protected java.util.ArrayList<AttrData> attrs
The remaining attributes of this class
-
cls
protected ClassData cls
-
meth
protected MethodData meth
-
-
Constructor Detail
-
CodeData
public CodeData(MethodData meth)
-
-
Method Detail
-
get_iAtt
protected org.openjdk.asmtools.jdis.iAtt get_iAtt(int pc)
-
read
public void read(java.io.DataInputStream in, int codeattrlen) throws java.io.IOException
readread and resolve the code attribute data called from MethodData. precondition: NumFields has already been read from the stream.
- Throws:
java.io.IOException
-
print
public void print() throws java.io.IOException
printprints the code data to the current output stream. called from MethodData.
- Throws:
java.io.IOException
-
-