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 ClassParser(String zipFile, String fileName)
zipFile - zip file namefileName - file namepublic JavaClass parse() throws IOException, ClassFormatException
IOException - if an I/O error occurs.ClassFormatException - if a class is malformed or cannot be interpreted as a class fileCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.