Package proguard.classfile.editor
Class BootstrapMethodsAttributeEditor
- java.lang.Object
-
- proguard.classfile.editor.BootstrapMethodsAttributeEditor
-
public class BootstrapMethodsAttributeEditor extends java.lang.Object
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
Constructors Constructor Description BootstrapMethodsAttributeEditor(BootstrapMethodsAttribute targetBootstrapMethodsAttribute)
Creates a new BootstrapMethodsAttributeEditor that will edit bootstrap methods in the given bootstrap methods attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addBootstrapMethodInfo(BootstrapMethodInfo bootstrapMethodInfo)
Adds a given bootstrap method to the bootstrap methods attribute.void
removeBootstrapMethodInfo(BootstrapMethodInfo bootstrapMethodInfo)
Removes the given bootstrap method from the bootstrap method attribute.
-
-
-
Constructor Detail
-
BootstrapMethodsAttributeEditor
public BootstrapMethodsAttributeEditor(BootstrapMethodsAttribute targetBootstrapMethodsAttribute)
Creates a new BootstrapMethodsAttributeEditor that will edit bootstrap methods in the given bootstrap methods attribute.
-
-
Method Detail
-
addBootstrapMethodInfo
public int addBootstrapMethodInfo(BootstrapMethodInfo bootstrapMethodInfo)
Adds a given bootstrap method to the bootstrap methods attribute.- Returns:
- the index of the bootstrap method.
-
removeBootstrapMethodInfo
public void removeBootstrapMethodInfo(BootstrapMethodInfo bootstrapMethodInfo)
Removes the given bootstrap method from the bootstrap method attribute.
-
-