public class InstructionAdder extends java.lang.Object implements InstructionVisitor
InstructionVisitor
adds all instructions that it visits to the given target code
attribute.Constructor and Description |
---|
InstructionAdder(ProgramClass targetClass,
CodeAttributeComposer targetComposer)
Creates a new InstructionAdder that will copy classes into the given target code attribute.
|
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnySwitchInstruction, visitBranchInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
public InstructionAdder(ProgramClass targetClass, CodeAttributeComposer targetComposer)
public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
InstructionVisitor
visitAnyInstruction
in interface InstructionVisitor
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
visitConstantInstruction
in interface InstructionVisitor