public abstract class ClassDefParser
extends java.lang.Object
ClassDef AST.| Modifier and Type | Class and Description |
|---|---|
private static class |
ClassDefParser.classParser
All the parsing work is done by this class and its class_table method.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
PARSE_SERIAL_VERSION_UID |
(package private) static int |
SERIAL_VERSION_UID_FIELD_MASK |
(package private) static java.lang.String |
SERIAL_VERSION_UID_FIELD_NAME |
| Constructor and Description |
|---|
ClassDefParser() |
| Modifier and Type | Method and Description |
|---|---|
static ClassDef |
parseClass(byte[] bytes)
Parses an array of bytecodes into a
ClassDef. |
static ClassDef |
parseClass(byte[] bytes,
int length)
Parses an array of bytecodes into a
ClassDef. |
static ClassDef |
parseClass(java.io.InputStream bytes)
Parses a stream of bytecodes into a
ClassDef. |
static final boolean PARSE_SERIAL_VERSION_UID
static final java.lang.String SERIAL_VERSION_UID_FIELD_NAME
static final int SERIAL_VERSION_UID_FIELD_MASK
public static ClassDef parseClass(byte[] bytes) throws java.io.IOException
ClassDef.java.io.IOExceptionpublic static ClassDef parseClass(byte[] bytes, int length) throws java.io.IOException
ClassDef.java.io.IOException