Package proguard.classfile.visitor
Class DotClassClassVisitor
- java.lang.Object
-
- proguard.classfile.visitor.DotClassClassVisitor
-
- All Implemented Interfaces:
ConstantVisitor
,InstructionVisitor
public class DotClassClassVisitor extends java.lang.Object implements InstructionVisitor, ConstantVisitor
ThisInstructionVisitor
lets a givenClassVisitor
visit all classes involved in any.class
constructs that it visits.Note that before JDK 1.5,
.class
constructs are actually compiled differently, usingClass.forName
constructs.
-
-
Constructor Summary
Constructors Constructor Description DotClassClassVisitor(ClassVisitor classVisitor)
Creates a new ClassHierarchyTraveler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyConstant(Clazz clazz, Constant constant)
Visits any Constant instance.void
visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
Visits any Instruction instance.void
visitClassConstant(Clazz clazz, ClassConstant classConstant)
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.constant.visitor.ConstantVisitor
visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
Methods inherited from interface proguard.classfile.instruction.visitor.InstructionVisitor
visitAnySwitchInstruction, visitBranchInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstruction
-
-
-
-
Constructor Detail
-
DotClassClassVisitor
public DotClassClassVisitor(ClassVisitor classVisitor)
Creates a new ClassHierarchyTraveler.- Parameters:
classVisitor
- theClassVisitor
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
-
visitAnyConstant
public void visitAnyConstant(Clazz clazz, Constant constant)
Description copied from interface:ConstantVisitor
Visits any Constant instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyConstant
in interfaceConstantVisitor
-
visitClassConstant
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
- Specified by:
visitClassConstant
in interfaceConstantVisitor
-
-