Class InstructionConstantVisitor
- java.lang.Object
-
- proguard.classfile.instruction.visitor.InstructionConstantVisitor
-
- All Implemented Interfaces:
InstructionVisitor
public class InstructionConstantVisitor extends java.lang.Object implements InstructionVisitor
ThisInstructionVisitor
lets a givenConstantVisitor
visit all constants of the instructions it visits.
-
-
Constructor Summary
Constructors Constructor Description InstructionConstantVisitor(ConstantVisitor constantVisitor)
Creates a new InstructionConstantVisitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
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
-
InstructionConstantVisitor
public InstructionConstantVisitor(ConstantVisitor constantVisitor)
Creates a new InstructionConstantVisitor.- Parameters:
constantVisitor
- the ConstantVisitor to which visits will be delegated.
-
-
Method Detail
-
visitAnyInstruction
public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
Description copied from interface:InstructionVisitor
Visits any Instruction instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyInstruction
in interfaceInstructionVisitor
-
visitConstantInstruction
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
- Specified by:
visitConstantInstruction
in interfaceInstructionVisitor
-
-