Package proguard.classfile.editor
Class BootstrapMethodRemapper
- java.lang.Object
-
- proguard.classfile.editor.BootstrapMethodRemapper
-
- All Implemented Interfaces:
ConstantVisitor
public class BootstrapMethodRemapper extends java.lang.Object implements ConstantVisitor
ThisConstantVisitor
remaps all possible indices of bootstrap methods of the constants that it visits, based on a given index map.
-
-
Constructor Summary
Constructors Constructor Description BootstrapMethodRemapper()
BootstrapMethodRemapper(boolean ignoreDanglingConstants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
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, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
-
-
-
Method Detail
-
setBootstrapMethodIndexMap
public void setBootstrapMethodIndexMap(int[] bootstrapMethodIndexMap)
Sets the given mapping of old constant pool entry indexes to their new indexes.
-
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
-
visitDynamicConstant
public void visitDynamicConstant(Clazz clazz, DynamicConstant dynamicConstant)
- Specified by:
visitDynamicConstant
in interfaceConstantVisitor
-
visitInvokeDynamicConstant
public void visitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant)
- Specified by:
visitInvokeDynamicConstant
in interfaceConstantVisitor
-
-