程序包 proguard.io

类 ClassReader

  • 所有已实现的接口:
    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 instances or LibraryClass instances, depending on the isLibrary flag.

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

    • 构造器概要

      构造器 
      构造器 说明
      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.
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • 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.
    • 方法详细资料

      • read

        public void read​(DataEntry dataEntry)
                  throws java.io.IOException
        从接口复制的说明: DataEntryReader
        Reads the given data entry.
        指定者:
        read 在接口中 DataEntryReader
        抛出:
        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).