public abstract class ClassFileBytesDisassembler extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ClassFileBytesDisassembler() |
Modifier and Type | Method and Description |
---|---|
abstract 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 |
getDescription()
Answers a readable short description of this disassembler
|
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
public abstract String disassemble(byte[] classFileBytes, String lineSeparator) throws ClassFormatException
classFileBytes
- The bytes of the classfilelineSeparator
- the line separator to use.ClassFormatException
- if the classfile bytes are ill-formedpublic abstract String disassemble(byte[] classFileBytes, String lineSeparator, int mode) throws ClassFormatException
classFileBytes
- The bytes of the classfilelineSeparator
- the line separator to use.mode
- the mode used to disassemble the IClassFileReaderClassFormatException
- if the classfile bytes are ill-formedpublic abstract String getDescription()
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.