类 GotoGotoReplacer

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

    public class GotoGotoReplacer
    extends java.lang.Object
    implements proguard.classfile.instruction.visitor.InstructionVisitor
    This InstructionVisitor simplifies unconditional branches to other unconditional branches.
    • 构造器概要

      构造器 
      构造器 说明
      GotoGotoReplacer​(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor)
      Creates a new GotoGotoReplacer.
      GotoGotoReplacer​(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor, proguard.classfile.instruction.visitor.InstructionVisitor extraInstructionVisitor)
      Creates a new GotoGotoReplacer.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void visitAnyInstruction​(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.Instruction instruction)  
      void visitBranchInstruction​(proguard.classfile.Clazz clazz, proguard.classfile.Method method, proguard.classfile.attribute.CodeAttribute codeAttribute, int offset, proguard.classfile.instruction.BranchInstruction branchInstruction)  
      • 从类继承的方法 java.lang.Object

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

        visitAnySwitchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
    • 构造器详细资料

      • GotoGotoReplacer

        public GotoGotoReplacer​(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor)
        Creates a new GotoGotoReplacer.
        参数:
        codeAttributeEditor - a code editor that can be used for accumulating changes to the code.
      • GotoGotoReplacer

        public GotoGotoReplacer​(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor,
                                proguard.classfile.instruction.visitor.InstructionVisitor extraInstructionVisitor)
        Creates a new GotoGotoReplacer.
        参数:
        codeAttributeEditor - a code editor that can be used for accumulating changes to the code.
        extraInstructionVisitor - an optional extra visitor for all replaced goto instructions.
    • 方法详细资料

      • 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
      • visitBranchInstruction

        public void visitBranchInstruction​(proguard.classfile.Clazz clazz,
                                           proguard.classfile.Method method,
                                           proguard.classfile.attribute.CodeAttribute codeAttribute,
                                           int offset,
                                           proguard.classfile.instruction.BranchInstruction branchInstruction)
        指定者:
        visitBranchInstruction 在接口中 proguard.classfile.instruction.visitor.InstructionVisitor