public class InstructionConstantVisitor extends java.lang.Object implements InstructionVisitor
InstructionVisitor
lets a given ConstantVisitor
visit all constants of the
instructions it visits.Constructor and Description |
---|
InstructionConstantVisitor(ConstantVisitor constantVisitor)
Creates a new InstructionConstantVisitor.
|
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 InstructionConstantVisitor(ConstantVisitor constantVisitor)
constantVisitor
- the ConstantVisitor to which visits will be delegated.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