public final class ClassParser extends Object
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
JavaClass |
parse()
Parse the given Java class file and return an object that represents
the contained data, i.e., constants, methods, fields and commands.
|
public ClassParser(InputStream file, String file_name)
file
- Input streamfile_name
- File namepublic ClassParser(String file_name)
file_name
- file namepublic JavaClass parse() throws IOException, ClassFormatException
IOException
ClassFormatException