Class InstructionConstantVisitor
java.lang.Object
proguard.classfile.instruction.visitor.InstructionConstantVisitor
- All Implemented Interfaces:
InstructionVisitor
This
InstructionVisitor lets a given ConstantVisitor visit all constants of the
instructions it visits.-
Constructor Summary
ConstructorsConstructorDescriptionInstructionConstantVisitor(ConstantVisitor constantVisitor) Creates a new InstructionConstantVisitor. -
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
-
InstructionConstantVisitor
Creates a new InstructionConstantVisitor.- Parameters:
constantVisitor- the ConstantVisitor to which visits will be delegated.
-
-
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
-