public final class ClassParser extends Object
| Constructor and Description |
|---|
ClassParser(InputStream inputStream,
String fileName)
Parses class from the given stream.
|
ClassParser(String fileName)
Parses class from given .class file.
|
ClassParser(String zipFile,
String fileName)
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 fileName)
inputStream - Input streamfileName - File namepublic ClassParser(String fileName)
fileName - file namepublic JavaClass parse() throws IOException, ClassFormatException
IOExceptionClassFormatExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.