类 GsonDeserializationInvocationFinder
- java.lang.Object
-
- proguard.optimize.gson.GsonDeserializationInvocationFinder
-
- 所有已实现的接口:
proguard.classfile.instruction.visitor.InstructionVisitor
public class GsonDeserializationInvocationFinder extends java.lang.Object implements proguard.classfile.instruction.visitor.InstructionVisitorThis instruction visitor searches the code for invocations to any of the deserialization methods of Gson (all the fromJson variants) and keeps track of the domain classes that are involved in the deserialization.
-
-
构造器概要
构造器 构造器 说明 GsonDeserializationInvocationFinder(proguard.classfile.ClassPool programClassPool, proguard.classfile.ClassPool libraryClassPool, proguard.classfile.visitor.ClassVisitor domainClassVisitor, proguard.classfile.util.WarningPrinter warningPrinter)Creates a new GsonDeserializationInvocationFinder.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidvisitAnyInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)
-
-
-
构造器详细资料
-
GsonDeserializationInvocationFinder
public GsonDeserializationInvocationFinder(proguard.classfile.ClassPool programClassPool, proguard.classfile.ClassPool libraryClassPool, proguard.classfile.visitor.ClassVisitor domainClassVisitor, proguard.classfile.util.WarningPrinter warningPrinter)Creates a new GsonDeserializationInvocationFinder.- 参数:
programClassPool- the program class pool used to look up class references.libraryClassPool- the library class pool used to look up class references.domainClassVisitor- the visitor to which found domain classes that are involved in Gson deserialization will be delegated.warningPrinter- used to print notes about domain classes that can not be handled by the Gson optimization.
-
-
方法详细资料
-
visitAnyInstruction
public void visitAnyInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)- 指定者:
visitAnyInstruction在接口中proguard.classfile.instruction.visitor.InstructionVisitor
-
-