Package proguard.classfile.editor
Class InstructionAdder
java.lang.Object
proguard.classfile.editor.InstructionAdder
- All Implemented Interfaces:
InstructionVisitor
This
InstructionVisitor adds all instructions that it visits to the given target code
attribute.-
Constructor Summary
ConstructorsConstructorDescriptionInstructionAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer) Creates a new InstructionAdder that will copy classes into the given target code attribute. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitAnyInstruction(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, waitMethods inherited from interface proguard.classfile.instruction.visitor.InstructionVisitor
visitAnySwitchInstruction, visitBranchInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
-
Constructor Details
-
InstructionAdder
Creates a new InstructionAdder that will copy classes into the given target code attribute.
-
-
Method Details
-
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
-