<T extends Constant> T |
ConstantPool.getConstant(int index) |
Gets constant from constant pool.
|
<T extends Constant> T |
ConstantPool.getConstant(int index,
byte tag) |
Gets constant from constant pool and check whether it has the expected type.
|
<T extends Constant> T |
ConstantPool.getConstant(int index,
byte tag,
java.lang.Class<T> castTo) |
Gets constant from constant pool and check whether it has the expected type.
|
<T extends Constant> T |
ConstantPool.getConstant(int index,
java.lang.Class<T> castTo) |
Gets constant from constant pool.
|
ConstantUtf8 |
ConstantPool.getConstantUtf8(int index) |
Gets constant from constant pool and check whether it has the expected type.
|
static java.lang.String[] |
Utility.methodSignatureArgumentTypes(java.lang.String signature) |
Converts argument list portion of method signature to string with all class names compacted.
|
static java.lang.String[] |
Utility.methodSignatureArgumentTypes(java.lang.String signature,
boolean chopit) |
Converts argument list portion of method signature to string.
|
static java.lang.String |
Utility.methodSignatureReturnType(java.lang.String signature) |
Converts return type portion of method signature to string with all class names compacted.
|
static java.lang.String |
Utility.methodSignatureReturnType(java.lang.String signature,
boolean chopit) |
Converts return type portion of method signature to string.
|
static java.lang.String |
Utility.methodSignatureToString(java.lang.String signature,
java.lang.String name,
java.lang.String access,
boolean chopit,
LocalVariableTable vars) |
This method converts a method signature string into a Java type declaration like 'void main(String[])' and throws a
'ClassFormatException' when the parsed type is invalid.
|
static java.lang.String |
Utility.methodTypeToSignature(java.lang.String ret,
java.lang.String[] argv) |
Converts string containing the method return and argument types to a byte code method signature.
|
JavaClass |
ClassParser.parse() |
Parses the given Java class file and return an object that represents the contained data, i.e., constants, methods,
fields and commands.
|
private void |
ClassParser.readAttributes() |
Reads information about the attributes of the class.
|
private void |
ClassParser.readClassInfo() |
Reads information about the class and its super class.
|
static Constant |
Constant.readConstant(java.io.DataInput dataInput) |
Reads one constant from the given input, the type depends on a tag byte.
|
private void |
ClassParser.readConstantPool() |
Reads constant pool entries.
|
private void |
ClassParser.readFields() |
Reads information about the fields of the class, i.e., its variables.
|
private void |
ClassParser.readID() |
Checks whether the header of the file is ok.
|
private void |
ClassParser.readInterfaces() |
Reads information about the interfaces implemented by this class.
|
private void |
ClassParser.readVersion() |
Reads major and minor version of compiler which created the file.
|
static byte |
Utility.typeOfMethodSignature(java.lang.String signature) |
Return type of method signature as a byte value as defined in Constants
|
static byte |
Utility.typeOfSignature(java.lang.String signature) |
Return type of signature as a byte value as defined in Constants
|
static java.lang.String |
Utility.typeSignatureToString(java.lang.String signature,
boolean chopit) |
This method converts a type signature string into a Java type declaration such as 'String[]' and throws a
'ClassFormatException' when the parsed type is invalid.
|