Package serp.bytecode

Class BootstrapMethods

All Implemented Interfaces:
BCEntity, VisitAcceptor

public class BootstrapMethods extends Attribute
  • Field Details

  • Constructor Details

    • BootstrapMethods

      BootstrapMethods(int nameIndex, Attributes owner)
  • Method Details

    • acceptVisit

      public void acceptVisit(BCVisitor visitor)
      Description copied from interface: VisitAcceptor
      Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this one.
    • getNumberBootstrapMethods

      public int getNumberBootstrapMethods()
    • getBootstrapMethods

      public BootstrapMethodElement[] getBootstrapMethods()
    • setBootstrapMethods

      public void setBootstrapMethods(BootstrapMethodElement[] methods)
    • getLength

      int getLength()
      Return the length of the bytecode representation of this attribute in bytes, excluding the name index.
      Overrides:
      getLength in class Attribute
    • read

      void read(DataInput in, int length) throws IOException
      Description copied from class: Attribute
      Read the attribute bytecode from the given stream, up to length bytes, excluding the name index. Does nothing by default.
      Overrides:
      read in class Attribute
      Throws:
      IOException
    • write

      void write(DataOutput out, int length) throws IOException
      Description copied from class: Attribute
      Write the attribute bytecode to the given stream, up to length bytes, excluding the name index. Does nothing by default.
      Overrides:
      write in class Attribute
      Throws:
      IOException