public class ClassReader extends java.lang.Object implements DataEntryReader
DataEntryReader
applies a given ClassVisitor
to the class definitions that
it reads.
Class files are read as ProgramClass
instances or LibraryClass
instances,
depending on the isLibrary
flag.
In case of libraries, only public classes are considered, if the
skipNonPublicLibraryClasses
flag is set.
Constructor and Description |
---|
ClassReader(boolean isLibrary,
boolean skipNonPublicLibraryClasses,
boolean skipNonPublicLibraryClassMembers,
boolean ignoreStackMapAttributes,
boolean includeKotlinMetadata,
WarningPrinter warningPrinter,
ClassVisitor classVisitor)
Creates a new ClassReader for reading the specified Clazz objects.
|
ClassReader(boolean isLibrary,
boolean skipNonPublicLibraryClasses,
boolean skipNonPublicLibraryClassMembers,
boolean ignoreStackMapAttributes,
WarningPrinter warningPrinter,
ClassVisitor classVisitor)
Creates a new ClassReader for reading the specified Clazz objects.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
This main method illustrates the use of this class.
|
void |
read(DataEntry dataEntry)
Reads the given data entry.
|
public ClassReader(boolean isLibrary, boolean skipNonPublicLibraryClasses, boolean skipNonPublicLibraryClassMembers, boolean ignoreStackMapAttributes, WarningPrinter warningPrinter, ClassVisitor classVisitor)
public ClassReader(boolean isLibrary, boolean skipNonPublicLibraryClasses, boolean skipNonPublicLibraryClassMembers, boolean ignoreStackMapAttributes, boolean includeKotlinMetadata, WarningPrinter warningPrinter, ClassVisitor classVisitor)
public void read(DataEntry dataEntry) throws java.io.IOException
DataEntryReader
read
in interface DataEntryReader
java.io.IOException
public static void main(java.lang.String[] args)
It writes out the structure of the specified classes (packaged in jar, zip, or class files).