Class BufferedCodeBuilder.Model

All Implemented Interfaces:
Iterable<CodeElement>, AttributedElement, ClassfileElement, CodeModel, CompoundElement<CodeElement>, MethodElement
Enclosing class:
BufferedCodeBuilder

public final class BufferedCodeBuilder.Model extends AbstractUnboundModel<CodeElement> implements CodeModel
  • Method Details

    • exceptionHandlers

      public List<ExceptionCatch> exceptionHandlers()
      Description copied from interface: CodeModel
      Returns the exception table of the method. The exception table is also modeled by ExceptionCatch elements in the streaming view.
      Specified by:
      exceptionHandlers in interface CodeModel
      Returns:
      the exception table of the method
    • maxLocals

      public int maxLocals()
      Description copied from interface: CodeModel
      Returns the maximum size of the local variable table.
      Specified by:
      maxLocals in interface CodeModel
      Returns:
      the maximum size of the local variable table
    • maxStack

      public int maxStack()
      Description copied from interface: CodeModel
      Returns the maximum size of the operand stack.
      Specified by:
      maxStack in interface CodeModel
      Returns:
      the maximum size of the operand stack
    • parent

      public Optional<MethodModel> parent()
      Description copied from interface: CodeModel
      Returns the enclosing method, if known.
      Specified by:
      parent in interface CodeModel
      Returns:
      the enclosing method, if known
    • writeTo

      public void writeTo(DirectMethodBuilder builder)
      Overrides:
      writeTo in class AbstractElement
    • writeTo

      public void writeTo(BufWriter buf)
    • toString

      public String toString()
      Overrides:
      toString in class Object