|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.core.util.ClassFileBytesDisassembler
public abstract class ClassFileBytesDisassembler
This class is intended to be subclassed to disassemble classfile bytes onto a String using the proper line separator.
Field Summary | |
---|---|
static int |
COMPACT
This mode is used to compact the class name to a simple name instead of a qualified name. |
static int |
DEFAULT
The mode is the default mode to disassemble IClassFileReader. |
static int |
DETAILED
The mode is the detailed mode to disassemble IClassFileReader. |
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. |
static int |
WORKING_COPY
This mode is used to retrive a pseudo code for working copy purpose. |
Constructor Summary | |
---|---|
ClassFileBytesDisassembler()
|
Method Summary | |
---|---|
abstract java.lang.String |
disassemble(byte[] classFileBytes,
java.lang.String lineSeparator)
Answers back the disassembled string of the classfile bytes using the default mode. |
abstract java.lang.String |
disassemble(byte[] classFileBytes,
java.lang.String lineSeparator,
int mode)
Answers back the disassembled string of the classfile bytes according to the mode. |
abstract java.lang.String |
getDescription()
Answers a readable short description of this disassembler |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DETAILED
public static final int DEFAULT
public static final int SYSTEM
public static final int COMPACT
public static final int WORKING_COPY
Constructor Detail |
---|
public ClassFileBytesDisassembler()
Method Detail |
---|
public abstract java.lang.String disassemble(byte[] classFileBytes, java.lang.String lineSeparator) throws ClassFormatException
classFileBytes
- The bytes of the classfilelineSeparator
- the line separator to use.
ClassFormatException
- if the classfile bytes are ill-formedpublic abstract java.lang.String disassemble(byte[] classFileBytes, java.lang.String lineSeparator, int mode) throws ClassFormatException
classFileBytes
- The bytes of the classfilelineSeparator
- the line separator to use.mode
- the mode used to disassemble the IClassFileReader
ClassFormatException
- if the classfile bytes are ill-formedpublic abstract java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |