Package proguard.classfile.editor
Class BootstrapMethodInfoAdder
java.lang.Object
proguard.classfile.editor.BootstrapMethodInfoAdder
- All Implemented Interfaces:
BootstrapMethodInfoVisitor
This
BootstrapMethodInfoVisitor adds all bootstrap methods that it visits to the given
target bootstrap methods attribute.-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapMethodInfoAdder(ProgramClass targetClass, BootstrapMethodsAttribute targetBootstrapMethodsAttribute) Creates a new BootstrapMethodInfoAdder that will copy bootstrap methods into the given bootstrap methods attribute. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index of the most recently added bootstrap method.voidvisitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo)
-
Constructor Details
-
BootstrapMethodInfoAdder
public BootstrapMethodInfoAdder(ProgramClass targetClass, BootstrapMethodsAttribute targetBootstrapMethodsAttribute) Creates a new BootstrapMethodInfoAdder that will copy bootstrap methods into the given bootstrap methods attribute.
-
-
Method Details
-
getBootstrapMethodIndex
public int getBootstrapMethodIndex()Returns the index of the most recently added bootstrap method. -
visitBootstrapMethodInfo
- Specified by:
visitBootstrapMethodInfoin interfaceBootstrapMethodInfoVisitor
-