public class StringReferenceInitializer extends java.lang.Object implements ConstantVisitor
ConstantVisitor
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 and Description |
---|
StringReferenceInitializer(ClassPool programClassPool,
ClassPool libraryClassPool)
Creates a new StringReferenceInitializer.
|
Modifier and Type | Method and Description |
---|---|
void |
visitAnyConstant(Clazz clazz,
Constant constant)
Visits any Constant instance.
|
void |
visitStringConstant(Clazz clazz,
StringConstant stringConstant) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyMethodrefConstant, visitAnyRefConstant, visitClassConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitUtf8Constant
public void visitAnyConstant(Clazz clazz, Constant constant)
ConstantVisitor
visitAnyConstant
in interface ConstantVisitor
public void visitStringConstant(Clazz clazz, StringConstant stringConstant)
visitStringConstant
in interface ConstantVisitor