public final class ClassParser extends Object
| Constructor and Description |
|---|
ClassParser(InputStream inputStream,
String file_name)
Parses class from the given stream.
|
ClassParser(String file_name)
Parses class from given .class file.
|
ClassParser(String zip_file,
String file_name)
Parses class from given .class file in a ZIP-archive
|
| Modifier and Type | Method and Description |
|---|---|
JavaClass |
parse()
Parses the given Java class file and return an object that represents
the contained data, i.e., constants, methods, fields and commands.
|
public ClassParser(InputStream inputStream, String file_name)
inputStream - Input streamfile_name - File namepublic ClassParser(String file_name)
file_name - file namepublic JavaClass parse() throws IOException, ClassFormatException
IOExceptionClassFormatExceptionCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.