类 GsonDomainClassFinder

  • 所有已实现的接口:
    proguard.classfile.visitor.ClassVisitor

    public class GsonDomainClassFinder
    extends java.lang.Object
    implements proguard.classfile.visitor.ClassVisitor
    This class visitor determines whether a given domain class can be optimized by the GSON optimizations and traverses both the class and field hierarchy to look for further domain classes.
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static boolean DEBUG  
    • 构造器概要

      构造器 
      构造器 说明
      GsonDomainClassFinder​(GsonRuntimeSettings gsonRuntimeSettings, proguard.classfile.ClassPool gsonDomainClassPool, proguard.classfile.util.WarningPrinter warningPrinter)
      Creates a new GsonDomainClassFinder.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void visitAnyClass​(proguard.classfile.Clazz clazz)  
      void visitProgramClass​(proguard.classfile.ProgramClass programClass)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 proguard.classfile.visitor.ClassVisitor

        visitLibraryClass
    • 字段详细资料

    • 构造器详细资料

      • GsonDomainClassFinder

        public GsonDomainClassFinder​(GsonRuntimeSettings gsonRuntimeSettings,
                                     proguard.classfile.ClassPool gsonDomainClassPool,
                                     proguard.classfile.util.WarningPrinter warningPrinter)
        Creates a new GsonDomainClassFinder.
        参数:
        gsonRuntimeSettings - keeps track of all GsonBuilder invocations.
        gsonDomainClassPool - the class pool to which the found domain classes are added.
        warningPrinter - used to print notes about domain classes that can not be handled by the Gson optimization.
    • 方法详细资料

      • visitAnyClass

        public void visitAnyClass​(proguard.classfile.Clazz clazz)
        指定者:
        visitAnyClass 在接口中 proguard.classfile.visitor.ClassVisitor
      • visitProgramClass

        public void visitProgramClass​(proguard.classfile.ProgramClass programClass)
        指定者:
        visitProgramClass 在接口中 proguard.classfile.visitor.ClassVisitor