Package proguard.classfile.visitor
Class ReferencedMemberVisitor
- java.lang.Object
-
- proguard.classfile.visitor.ReferencedMemberVisitor
-
- All Implemented Interfaces:
ElementValueVisitor
,ConstantVisitor
public class ReferencedMemberVisitor extends java.lang.Object implements ConstantVisitor, ElementValueVisitor
ThisConstantVisitor
andElementValueVisitor
lets a givenMemberVisitor
visit all the referenced class members of the elements that it visits.
-
-
Field Summary
Fields Modifier and Type Field Description protected MemberVisitor
memberVisitor
-
Constructor Summary
Constructors Constructor Description ReferencedMemberVisitor(MemberVisitor memberVisitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyConstant(Clazz clazz, Constant constant)
Visits any Constant instance.void
visitAnyElementValue(Clazz clazz, Annotation annotation, ElementValue elementValue)
Visits any ElementValue instance.void
visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
Visits any RefConstant instance.void
visitStringConstant(Clazz clazz, StringConstant stringConstant)
-
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, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitUtf8Constant
-
Methods inherited from interface proguard.classfile.attribute.annotation.visitor.ElementValueVisitor
visitAnnotationElementValue, visitArrayElementValue, visitClassElementValue, visitConstantElementValue, visitEnumConstantElementValue
-
-
-
-
Field Detail
-
memberVisitor
protected final MemberVisitor memberVisitor
-
-
Constructor Detail
-
ReferencedMemberVisitor
public ReferencedMemberVisitor(MemberVisitor memberVisitor)
-
-
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
-
visitStringConstant
public void visitStringConstant(Clazz clazz, StringConstant stringConstant)
- Specified by:
visitStringConstant
in interfaceConstantVisitor
-
visitAnyRefConstant
public void visitAnyRefConstant(Clazz clazz, RefConstant refConstant)
Description copied from interface:ConstantVisitor
Visits any RefConstant instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyRefConstant
in interfaceConstantVisitor
-
visitAnyElementValue
public void visitAnyElementValue(Clazz clazz, Annotation annotation, ElementValue elementValue)
Description copied from interface:ElementValueVisitor
Visits any ElementValue instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyElementValue
in interfaceElementValueVisitor
-
-