public class GotoGotoReplacer
extends java.lang.Object
implements proguard.classfile.instruction.visitor.InstructionVisitor
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public GotoGotoReplacer(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor)
codeAttributeEditor - a code editor that can be used for
accumulating changes to the code.public GotoGotoReplacer(proguard.classfile.editor.CodeAttributeEditor codeAttributeEditor,
proguard.classfile.instruction.visitor.InstructionVisitor extraInstructionVisitor)
codeAttributeEditor - a code editor that can be used for
accumulating changes to the code.extraInstructionVisitor - an optional extra visitor for all replaced
goto instructions.public void visitAnyInstruction(proguard.classfile.Clazz clazz,
proguard.classfile.Method method,
proguard.classfile.attribute.CodeAttribute codeAttribute,
int offset,
proguard.classfile.instruction.Instruction instruction)
visitAnyInstruction in interface proguard.classfile.instruction.visitor.InstructionVisitorpublic void visitBranchInstruction(proguard.classfile.Clazz clazz,
proguard.classfile.Method method,
proguard.classfile.attribute.CodeAttribute codeAttribute,
int offset,
proguard.classfile.instruction.BranchInstruction branchInstruction)
visitBranchInstruction in interface proguard.classfile.instruction.visitor.InstructionVisitor