| java.lang.Object org.eclipse.jdt.core.util.ClassFileBytesDisassembler
All known Subclasses: org.eclipse.jdt.internal.core.util.Disassembler,
ClassFileBytesDisassembler | abstract public class ClassFileBytesDisassembler (Code) | | This class is intended to be subclassed to disassemble
classfile bytes onto a String using the proper line separator.
since: 2.1 |
Field Summary | |
final public static int | COMPACT This mode is used to compact the class name to a simple name instead of a qualified name. | final public static int | DEFAULT The mode is the default mode to disassemble IClassFileReader. | final public static int | DETAILED The mode is the detailed mode to disassemble IClassFileReader. | final public static int | SYSTEM This mode corresponds to the detailed mode plus the constant pool contents and
any further information that would be useful for debugging purpose. | final public static int | WORKING_COPY This mode is used to retrive a pseudo code for working copy purpose. |
Method Summary | |
abstract public String | disassemble(byte[] classFileBytes, String lineSeparator) Answers back the disassembled string of the classfile bytes using the default
mode.
This is an output quite similar to the javap tool, using DEFAULT mode.
Parameters: classFileBytes - The bytes of the classfile Parameters: lineSeparator - the line separator to use. | abstract public String | disassemble(byte[] classFileBytes, String lineSeparator, int mode) Answers back the disassembled string of the classfile bytes according to the
mode. | abstract public String | getDescription() |
COMPACT | final public static int COMPACT(Code) | | This mode is used to compact the class name to a simple name instead of a qualified name.
since: 3.1 |
DEFAULT | final public static int DEFAULT(Code) | | The mode is the default mode to disassemble IClassFileReader.
|
DETAILED | final public static int DETAILED(Code) | | The mode is the detailed mode to disassemble IClassFileReader. It returns the magic
numbers, the version numbers and field and method descriptors.
|
SYSTEM | final public static int SYSTEM(Code) | | This mode corresponds to the detailed mode plus the constant pool contents and
any further information that would be useful for debugging purpose.
since: 3.1 |
WORKING_COPY | final public static int WORKING_COPY(Code) | | This mode is used to retrive a pseudo code for working copy purpose.
since: 3.2 |
disassemble | abstract public String disassemble(byte[] classFileBytes, String lineSeparator) throws ClassFormatException(Code) | | Answers back the disassembled string of the classfile bytes using the default
mode.
This is an output quite similar to the javap tool, using DEFAULT mode.
Parameters: classFileBytes - The bytes of the classfile Parameters: lineSeparator - the line separator to use. the disassembled string of the IClassFileReader using the default mode. exception: ClassFormatException - if the classfile bytes are ill-formed |
disassemble | abstract public String disassemble(byte[] classFileBytes, String lineSeparator, int mode) throws ClassFormatException(Code) | | Answers back the disassembled string of the classfile bytes according to the
mode.
This is an output quite similar to the javap tool.
Parameters: classFileBytes - The bytes of the classfile Parameters: lineSeparator - the line separator to use. Parameters: mode - the mode used to disassemble the IClassFileReader the disassembled string of the IClassFileReader according to the mode exception: ClassFormatException - if the classfile bytes are ill-formed |
getDescription | abstract public String getDescription()(Code) | | Answers a readable short description of this disassembler
String - a string description of the disassembler |
|
|