类 NoConstructorReferenceReplacer
- java.lang.Object
-
- proguard.optimize.peephole.NoConstructorReferenceReplacer
-
- 所有已实现的接口:
proguard.classfile.constant.visitor.ConstantVisitor,proguard.classfile.instruction.visitor.InstructionVisitor
public class NoConstructorReferenceReplacer extends java.lang.Object implements proguard.classfile.instruction.visitor.InstructionVisitor, proguard.classfile.constant.visitor.ConstantVisitorThis InstructionVisitor replaces instance references on classes without constructors in all methods that it visits.
-
-
构造器概要
构造器 构造器 说明 NoConstructorReferenceReplacer(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor)Creates a new NoConstructorReferenceReplacer.NoConstructorReferenceReplacer(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor, proguard.classfile.instruction.visitor.InstructionVisitor extraReferenceVisitor)Creates a new GotoGotoReplacer.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidvisitAnyConstant(proguard.classfile.Clazz clazz, proguard.classfile.constant.Constant constant)voidvisitAnyInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)voidvisitAnyMethodrefConstant(proguard.classfile.Clazz clazz, proguard.classfile.constant.AnyMethodrefConstant anyMethodrefConstant)voidvisitConstantInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.ConstantInstruction constantInstruction)voidvisitFieldrefConstant(proguard.classfile.Clazz clazz, proguard.classfile.constant.FieldrefConstant fieldrefConstant)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 proguard.classfile.constant.visitor.ConstantVisitor
visitAnyRefConstant, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
-
-
-
构造器详细资料
-
NoConstructorReferenceReplacer
public NoConstructorReferenceReplacer(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor)
Creates a new NoConstructorReferenceReplacer.- 参数:
codeAttributeEditor- a code editor that can be used for accumulating changes to the code.
-
NoConstructorReferenceReplacer
public NoConstructorReferenceReplacer(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor, proguard.classfile.instruction.visitor.InstructionVisitor extraReferenceVisitor)Creates a new GotoGotoReplacer.- 参数:
codeAttributeEditor- a code editor that can be used for accumulating changes to the code.extraReferenceVisitor- an optional extra visitor for all replaced instance references.
-
-
方法详细资料
-
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
-
visitConstantInstruction
public void visitConstantInstruction(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.ConstantInstruction constantInstruction)- 指定者:
visitConstantInstruction在接口中proguard.classfile.instruction.visitor.InstructionVisitor
-
visitAnyConstant
public void visitAnyConstant(proguard.classfile.Clazz clazz, proguard.classfile.constant.Constant constant)- 指定者:
visitAnyConstant在接口中proguard.classfile.constant.visitor.ConstantVisitor
-
visitFieldrefConstant
public void visitFieldrefConstant(proguard.classfile.Clazz clazz, proguard.classfile.constant.FieldrefConstant fieldrefConstant)- 指定者:
visitFieldrefConstant在接口中proguard.classfile.constant.visitor.ConstantVisitor
-
visitAnyMethodrefConstant
public void visitAnyMethodrefConstant(proguard.classfile.Clazz clazz, proguard.classfile.constant.AnyMethodrefConstant anyMethodrefConstant)- 指定者:
visitAnyMethodrefConstant在接口中proguard.classfile.constant.visitor.ConstantVisitor
-
-