Klasse ClassFileBytesDisassembler
java.lang.Object
org.aspectj.org.eclipse.jdt.core.util.ClassFileBytesDisassembler
- Bekannte direkte Unterklassen:
Disassembler
This class is intended to be subclassed to disassemble
classfile bytes onto a String using the proper line separator.
- Seit:
- 2.1
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final int
This mode is used to compact the class name to a simple name instead of a qualified name.static final int
The mode is the default mode to disassemble IClassFileReader.static final int
The mode is the detailed mode to disassemble IClassFileReader.static final int
This mode corresponds to the detailed mode plus the constant pool contents and any further information that would be useful for debugging purpose.static final int
This mode is used to retrive a pseudo code for working copy purpose. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract String
disassemble
(byte[] classFileBytes, String lineSeparator) Answers back the disassembled string of the classfile bytes using the default mode.abstract String
disassemble
(byte[] classFileBytes, String lineSeparator, int mode) Answers back the disassembled string of the classfile bytes according to the mode.abstract String
Answers a readable short description of this disassembler
-
Felddetails
-
DETAILED
public static final int DETAILEDThe mode is the detailed mode to disassemble IClassFileReader. It returns the magic numbers, the version numbers and field and method descriptors.- Siehe auch:
-
DEFAULT
public static final int DEFAULTThe mode is the default mode to disassemble IClassFileReader.- Siehe auch:
-
SYSTEM
public static final int SYSTEMThis mode corresponds to the detailed mode plus the constant pool contents and any further information that would be useful for debugging purpose.- Seit:
- 3.1
- Siehe auch:
-
COMPACT
public static final int COMPACTThis mode is used to compact the class name to a simple name instead of a qualified name.- Seit:
- 3.1
- Siehe auch:
-
WORKING_COPY
public static final int WORKING_COPYThis mode is used to retrive a pseudo code for working copy purpose.- Seit:
- 3.2
- Siehe auch:
-
-
Konstruktordetails
-
ClassFileBytesDisassembler
public ClassFileBytesDisassembler()
-
-
Methodendetails
-
disassemble
public abstract String disassemble(byte[] classFileBytes, String lineSeparator) throws ClassFormatException 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.- Parameter:
classFileBytes
- The bytes of the classfilelineSeparator
- the line separator to use.- Gibt zurück:
- the disassembled string of the IClassFileReader using the default mode.
- Löst aus:
ClassFormatException
- if the classfile bytes are ill-formed
-
disassemble
public abstract String disassemble(byte[] classFileBytes, String lineSeparator, int mode) throws ClassFormatException Answers back the disassembled string of the classfile bytes according to the mode. This is an output quite similar to the javap tool.- Parameter:
classFileBytes
- The bytes of the classfilelineSeparator
- the line separator to use.mode
- the mode used to disassemble the IClassFileReader- Gibt zurück:
- the disassembled string of the IClassFileReader according to the mode
- Löst aus:
ClassFormatException
- if the classfile bytes are ill-formed
-
getDescription
Answers a readable short description of this disassembler- Gibt zurück:
- String - a string description of the disassembler
-