proguard.io
Class ClassReader

java.lang.Object
  extended by proguard.io.ClassReader
All Implemented Interfaces:
DataEntryReader

public class ClassReader
extends java.lang.Object
implements DataEntryReader

This DataEntryReader applies a given ClassVisitor to the class definitions that it reads.

Class files are read as ProgramClass objects or LibraryClass objects, depending on the isLibrary flag.

In case of libraries, only public classes are considered, if the skipNonPublicLibraryClasses flag is set.


Constructor Summary
ClassReader(boolean isLibrary, boolean skipNonPublicLibraryClasses, boolean skipNonPublicLibraryClassMembers, WarningPrinter warningPrinter, ClassVisitor classVisitor)
          Creates a new DataEntryClassFilter for reading the specified Clazz objects.
 
Method Summary
 void read(DataEntry dataEntry)
          Reads the given data entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassReader

public ClassReader(boolean isLibrary,
                   boolean skipNonPublicLibraryClasses,
                   boolean skipNonPublicLibraryClassMembers,
                   WarningPrinter warningPrinter,
                   ClassVisitor classVisitor)
Creates a new DataEntryClassFilter for reading the specified Clazz objects.

Method Detail

read

public void read(DataEntry dataEntry)
          throws java.io.IOException
Description copied from interface: DataEntryReader
Reads the given data entry.

Specified by:
read in interface DataEntryReader
Throws:
java.io.IOException