Uses of Class
org.apache.bcel.classfile.ClassFormatException
Packages that use ClassFormatException
Package
Description
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 ClassFormatExceptionModifier and TypeMethodDescriptionConstantPool.constantToString
(int index, byte tag) Retrieves constant at `index' from constant pool and resolve it to a string representation.ConstantPool.constantToString
(Constant c) Resolves constant to a string representation.ConstantPool.getConstant
(int index, byte tag) Gets constant from constant pool and check whether it has the expected type.ConstantPool.getConstantString
(int index, byte tag) Gets string from constant pool and bypass the indirection of `ConstantClass' and `ConstantString' objects.static String[]
Utility.methodSignatureArgumentTypes
(String signature) Converts argument list portion of method signature to string with all class names compacted.static String[]
Utility.methodSignatureArgumentTypes
(String signature, boolean chopit) Converts argument list portion of method signature to string.static String
Utility.methodSignatureReturnType
(String signature) Converts return type portion of method signature to string with all class names compacted.static String
Utility.methodSignatureReturnType
(String signature, boolean chopit) Converts return type portion of method signature to string.static String
Utility.methodSignatureToString
(String signature, String name, 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 String
Utility.methodTypeToSignature
(String ret, String[] argv) Converts string containing the method return and argument types to a byte code method signature.ClassParser.parse()
Parses 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
(DataInput file, ConstantPool constant_pool) Class method reads one attribute from the input data stream.static Attribute
Attribute.readAttribute
(DataInputStream file, ConstantPool constant_pool) Class method reads one attribute from the input data stream.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
(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.readMethods()
Reads information about the methods of the class.private void
ClassParser.readVersion()
Reads major and minor version of compiler which created the file.static byte
Utility.typeOfMethodSignature
(String signature) Return type of method signature as a byte value as defined in Constantsstatic byte
Utility.typeOfSignature
(String signature) Return type of signature as a byte value as defined in Constantsstatic String
Utility.typeSignatureToString
(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.Constructors in org.apache.bcel.classfile that throw ClassFormatExceptionModifierConstructorDescriptionConstantPool
(DataInput input) Reads constants from given input stream.(package private)
Field
(DataInput file, ConstantPool constant_pool) Construct object from file stream.protected
FieldOrMethod
(DataInput file, ConstantPool constant_pool) Construct object from file stream.protected
FieldOrMethod
(DataInputStream file, ConstantPool constant_pool) Deprecated.(package private)
Method
(DataInput file, ConstantPool constant_pool) Construct object from file stream.
FieldOrMethod(java.io.DataInput, ConstantPool)
instead.