Package proguard.classfile.editor
Class BootstrapMethodsAttributeEditor
java.lang.Object
proguard.classfile.editor.BootstrapMethodsAttributeEditor
This class can add/remove bootstrap methods to/from a given bootstrap methods attribute.
Bootstrap methods to be added must have been filled out beforehand.
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapMethodsAttributeEditor(BootstrapMethodsAttribute targetBootstrapMethodsAttribute) Creates a new BootstrapMethodsAttributeEditor that will edit bootstrap methods in the given bootstrap methods attribute. -
Method Summary
Modifier and TypeMethodDescriptionintaddBootstrapMethodInfo(BootstrapMethodInfo bootstrapMethodInfo) Adds a given bootstrap method to the bootstrap methods attribute.voidremoveBootstrapMethodInfo(BootstrapMethodInfo bootstrapMethodInfo) Removes the given bootstrap method from the bootstrap method attribute.
-
Constructor Details
-
BootstrapMethodsAttributeEditor
Creates a new BootstrapMethodsAttributeEditor that will edit bootstrap methods in the given bootstrap methods attribute.
-
-
Method Details
-
addBootstrapMethodInfo
Adds a given bootstrap method to the bootstrap methods attribute.- Returns:
- the index of the bootstrap method.
-
removeBootstrapMethodInfo
Removes the given bootstrap method from the bootstrap method attribute.
-