|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ClassFormatException | |
---|---|
org.apache.bcel.classfile | This package contains the classes that describe the structure of a Java class file and a class file parser. |
Uses of ClassFormatException in org.apache.bcel.classfile |
---|
Methods in org.apache.bcel.classfile that throw ClassFormatException | |
---|---|
java.lang.String |
ConstantPool.constantToString(Constant c)
Resolve constant to a string representation. |
java.lang.String |
ConstantPool.constantToString(int index,
byte tag)
Retrieve constant at `index' from constant pool and resolve it to a string representation. |
Constant |
ConstantPool.getConstant(int index,
byte tag)
Get constant from constant pool and check whether it has the expected type. |
java.lang.String |
ConstantPool.getConstantString(int index,
byte tag)
Get string from constant pool and bypass the indirection of `ConstantClass' and `ConstantString' objects. |
static java.lang.String[] |
Utility.methodSignatureArgumentTypes(java.lang.String signature)
|
static java.lang.String[] |
Utility.methodSignatureArgumentTypes(java.lang.String signature,
boolean chopit)
|
static java.lang.String |
Utility.methodSignatureReturnType(java.lang.String signature)
|
static java.lang.String |
Utility.methodSignatureReturnType(java.lang.String signature,
boolean chopit)
|
static java.lang.String |
Utility.methodSignatureToString(java.lang.String signature,
java.lang.String name,
java.lang.String access,
boolean chopit,
LocalVariableTable vars)
A return?type signature represents the return value from a method. |
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()
Parse the given Java class file and return an object that represents the contained data, i.e., constants, methods, fields and commands. |
static Attribute |
Attribute.readAttribute(java.io.DataInputStream file,
ConstantPool constant_pool)
|
private void |
ClassParser.readAttributes()
Read information about the attributes of the class. |
private void |
ClassParser.readClassInfo()
Read information about the class and its super class. |
(package private) static Constant |
Constant.readConstant(java.io.DataInputStream file)
Read one constant from the given file, the type depends on a tag byte. |
private void |
ClassParser.readConstantPool()
Read constant pool entries. |
private void |
ClassParser.readFields()
Read information about the fields of the class, i.e., its variables. |
private void |
ClassParser.readID()
Check whether the header of the file is ok. |
private void |
ClassParser.readInterfaces()
Read information about the interfaces implemented by this class. |
private void |
ClassParser.readMethods()
Read information about the methods of the class. |
private void |
ClassParser.readVersion()
Read 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 |
Constructors in org.apache.bcel.classfile that throw ClassFormatException | |
---|---|
ConstantPool(java.io.DataInputStream file)
Read constants from given file stream. |
|
Field(java.io.DataInputStream file,
ConstantPool constant_pool)
Construct object from file stream. |
|
FieldOrMethod(java.io.DataInputStream file,
ConstantPool constant_pool)
Construct object from file stream. |
|
Method(java.io.DataInputStream file,
ConstantPool constant_pool)
Construct object from file stream. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |