Package proguard.classfile.util
Class StringReferenceInitializer
- java.lang.Object
-
- proguard.classfile.util.StringReferenceInitializer
-
- All Implemented Interfaces:
ConstantVisitor
public class StringReferenceInitializer extends java.lang.Object implements ConstantVisitor
ThisConstantVisitor
initializes any class references of all string constants it visits. More specifically, it fills out the references of string constant pool entries that happen to refer to a class in the program class pool or in the library class pool.
-
-
Constructor Summary
Constructors Constructor Description StringReferenceInitializer(ClassPool programClassPool, ClassPool libraryClassPool)
Creates a new StringReferenceInitializer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitAnyConstant(Clazz clazz, Constant constant)
Visits any Constant 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, visitAnyRefConstant, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitUtf8Constant
-
-
-
-
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
-
-