| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Wrapper class that parses a given Java .class file. The method parse returns a JavaClass object on success. When an I/O error or an inconsistency occurs an appropiate exception is propagated back to the caller. The structure and the names comply, except for a few conveniences, exactly with the JVM specification 1.0. See this paper for further details about the structure of a bytecode file.
Constructor Summary | |
ClassParser(InputStream file, String file_name) Parse class from the given stream. | |
ClassParser(String file_name) Parse class from given .class file. | |
ClassParser(String zip_file, String file_name) Parse class from given .class file in a ZIP-archive |
Method Summary | |
JavaClass | parse() Parse the given Java class file and return an object that represents the contained data, i.e. |
Constructor Detail |
public ClassParser(InputStream file, String file_name)
public ClassParser(String file_name)
throws java.io.IOException
public ClassParser(String zip_file, String file_name)
throws java.io.IOException
Method Detail |
public JavaClass parse()
throws java.io.IOException,
java.lang.ClassFormatError
Association Links |
to Class java.lang.String
to Class jellyj.classfile.javaclass.ConstantPool
to Class jellyj.classfile.javaclass.Field
to Class jellyj.classfile.javaclass.Method
to Class jellyj.classfile.javaclass.Attribute
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |