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
ThisInstructionVisitoradds 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 voidvisitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)Visits any Instruction instance.voidvisitConstantInstruction(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:InstructionVisitorVisits any Instruction instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyInstructionin interfaceInstructionVisitor
-
visitConstantInstruction
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
- Specified by:
visitConstantInstructionin interfaceInstructionVisitor
-
-