Class BootstrapMethodsAttributeEditor

java.lang.Object
proguard.classfile.editor.BootstrapMethodsAttributeEditor

public class BootstrapMethodsAttributeEditor extends 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 Details

    • BootstrapMethodsAttributeEditor

      public BootstrapMethodsAttributeEditor(BootstrapMethodsAttribute targetBootstrapMethodsAttribute)
      Creates a new BootstrapMethodsAttributeEditor that will edit bootstrap methods in the given bootstrap methods attribute.
  • Method Details

    • 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.