Package proguard.classfile.editor
Class InstructionAdder
- java.lang.Object
-
- proguard.classfile.editor.InstructionAdder
-
- All Implemented Interfaces:
InstructionVisitor
public class InstructionAdder extends java.lang.Object implements InstructionVisitor
ThisInstructionVisitor
adds all instructions that it visits to the given target code attribute.
-
-
Constructor Summary
Constructors Constructor Description InstructionAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer)
Creates a new InstructionAdder that will copy classes into the given target code attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
Visits any Instruction instance.void
visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.instruction.visitor.InstructionVisitor
visitAnySwitchInstruction, visitBranchInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
-
-
-
-
Constructor Detail
-
InstructionAdder
public InstructionAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer)
Creates a new InstructionAdder that will copy classes into the given target code attribute.
-
-
Method Detail
-
visitAnyInstruction
public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
Description copied from interface:InstructionVisitor
Visits any Instruction instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyInstruction
in interfaceInstructionVisitor
-
visitConstantInstruction
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
- Specified by:
visitConstantInstruction
in interfaceInstructionVisitor
-
-