Package proguard.io
Class ClassReader
- java.lang.Object
-
- proguard.io.ClassReader
-
- All Implemented Interfaces:
DataEntryReader
public class ClassReader extends java.lang.Object implements DataEntryReader
ThisDataEntryReaderapplies a givenClassVisitorto the class definitions that it reads.Class files are read as
ProgramClassinstances orLibraryClassinstances, depending on theisLibraryflag.In case of libraries, only public classes are considered, if the
skipNonPublicLibraryClassesflag is set.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)This main method illustrates the use of this class.voidread(DataEntry dataEntry)Reads the given data entry.
-
-
-
Constructor Detail
-
ClassReader
public ClassReader(boolean isLibrary, boolean skipNonPublicLibraryClasses, boolean skipNonPublicLibraryClassMembers, boolean ignoreStackMapAttributes, WarningPrinter warningPrinter, ClassVisitor classVisitor)Creates a new ClassReader for reading the specified Clazz objects.
-
ClassReader
public 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.
-
-
Method Detail
-
read
public void read(DataEntry dataEntry) throws java.io.IOException
Description copied from interface:DataEntryReaderReads the given data entry.- Specified by:
readin interfaceDataEntryReader- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args)
This main method illustrates the use of this class.It writes out the structure of the specified classes (packaged in jar, zip, or class files).
-
-