Class Code
java.lang.Object
de.inetsoftware.classparser.Code
- Author:
- Volker Berlin
-
Method Summary
Modifier and TypeMethodDescriptionGet the stream of Java Byte code instruction of this method.intGet the last position of the code.Get the constant pool of this code.Get exception table of this code block.intGet the line number table. is null if the code was optimized.Get the local variable table of this method.
-
Method Details
-
getConstantPool
Get the constant pool of this code.- Returns:
- the ConstantPool of the class
-
getExceptionTable
Get exception table of this code block.- Returns:
- the table, can be empty
-
getLineNumberTable
Get the line number table. is null if the code was optimized.- Returns:
- the table or null
- Throws:
IOException- if any I/O error occur
-
getLocalVariableTable
Get the local variable table of this method.- Returns:
- the variables
- Throws:
IOException- if any I/O error occur
-
getFirstLineNr
- Throws:
IOException
-
getByteCode
Get the stream of Java Byte code instruction of this method.- Returns:
- the stream
-
getCodeSize
public int getCodeSize()Get the last position of the code.- Returns:
- the size.
-