Class BootstrapMethodsList

All Implemented Interfaces:
ToHuman

public class BootstrapMethodsList extends FixedSizeList
List of bootstrap method entries, which are the contents of BootstrapMethods attributes.
  • Field Details

  • Constructor Details

    • BootstrapMethodsList

      public BootstrapMethodsList(int count)
      Constructs an instance.
      Parameters:
      count - the number of elements to be in the list
  • Method Details

    • get

      public BootstrapMethodsList.Item get(int n)
      Gets the indicated item.
      Parameters:
      n - >= 0; which item
      Returns:
      null-ok; the indicated item
    • set

      public void set(int n, BootstrapMethodsList.Item item)
      Sets the item at the given index.
      Parameters:
      n - >= 0, < size(); which element
      item - non-null; the item
    • set

      public void set(int n, CstType declaringClass, CstMethodHandle bootstrapMethodHandle, BootstrapMethodArgumentsList arguments)
      Sets the item at the given index.
      Parameters:
      n - >= 0, < size(); which element
      declaringClass - non-null; the class declaring bootstrap method.
      bootstrapMethodHandle - non-null; the bootstrap method handle
      arguments - non-null; the arguments of the bootstrap method
    • concat

      public static BootstrapMethodsList concat(BootstrapMethodsList list1, BootstrapMethodsList list2)
      Returns an instance which is the concatenation of the two given instances.
      Parameters:
      list1 - non-null; first instance
      list2 - non-null; second instance
      Returns:
      non-null; combined instance