public class BootstrapMethodRemapper extends java.lang.Object implements ConstantVisitor
ConstantVisitor
remaps all possible indices of bootstrap methods of the constants
that it visits, based on a given index map.Constructor and Description |
---|
BootstrapMethodRemapper() |
BootstrapMethodRemapper(boolean ignoreDanglingConstants) |
Modifier and Type | Method and Description |
---|---|
void |
setBootstrapMethodIndexMap(int[] bootstrapMethodIndexMap)
Sets the given mapping of old constant pool entry indexes to their new indexes.
|
void |
visitAnyConstant(Clazz clazz,
Constant constant)
Visits any Constant instance.
|
void |
visitDynamicConstant(Clazz clazz,
DynamicConstant dynamicConstant) |
void |
visitInvokeDynamicConstant(Clazz clazz,
InvokeDynamicConstant invokeDynamicConstant) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyMethodrefConstant, visitAnyRefConstant, visitClassConstant, visitDoubleConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
public BootstrapMethodRemapper()
public BootstrapMethodRemapper(boolean ignoreDanglingConstants)
public void setBootstrapMethodIndexMap(int[] bootstrapMethodIndexMap)
public void visitAnyConstant(Clazz clazz, Constant constant)
ConstantVisitor
visitAnyConstant
in interface ConstantVisitor
public void visitDynamicConstant(Clazz clazz, DynamicConstant dynamicConstant)
visitDynamicConstant
in interface ConstantVisitor
public void visitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant)
visitInvokeDynamicConstant
in interface ConstantVisitor