Class MethodrefTraveler
- java.lang.Object
-
- proguard.classfile.constant.visitor.MethodrefTraveler
-
- All Implemented Interfaces:
ConstantVisitor
public class MethodrefTraveler extends java.lang.Object implements ConstantVisitor
ThisConstantVisitor
travels from any method handle constants that it visits to their methodref constants, and applies a given constant visitor.
-
-
Constructor Summary
Constructors Constructor Description MethodrefTraveler(ConstantVisitor methodrefConstantVisitor)
Creates a new v that will delegate to the given constant visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyConstant(Clazz clazz, Constant constant)
Visits any Constant instance.void
visitMethodHandleConstant(Clazz clazz, MethodHandleConstant methodHandleConstant)
-
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, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
-
-
-
Constructor Detail
-
MethodrefTraveler
public MethodrefTraveler(ConstantVisitor methodrefConstantVisitor)
Creates a new v that will delegate to the given constant visitor.
-
-
Method Detail
-
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
-
visitMethodHandleConstant
public void visitMethodHandleConstant(Clazz clazz, MethodHandleConstant methodHandleConstant)
- Specified by:
visitMethodHandleConstant
in interfaceConstantVisitor
-
-