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