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