Class BoundAttribute.BoundCodeAttribute

All Implemented Interfaces:
Iterable<CodeElement>, Attribute<CodeAttribute>, CodeAttribute, AttributedElement, ClassfileElement, CodeModel, CompoundElement<CodeElement>, MethodElement, WritableElement<CodeAttribute>
Direct Known Subclasses:
CodeImpl
Enclosing class:
BoundAttribute<T extends Attribute<T>>

public abstract static sealed class BoundAttribute.BoundCodeAttribute extends BoundAttribute<CodeAttribute> implements CodeAttribute permits CodeImpl
  • Field Details

    • codeStart

      protected final int codeStart
    • codeLength

      protected final int codeLength
    • codeEnd

      protected final int codeEnd
    • attributePos

      protected final int attributePos
    • exceptionHandlerPos

      protected final int exceptionHandlerPos
    • exceptionHandlerCnt

      protected final int exceptionHandlerCnt
    • enclosingMethod

      protected final MethodModel enclosingMethod
  • Constructor Details

  • Method Details

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

      public int codeLength()
      Description copied from interface: CodeAttribute
      Returns The length of the code array in bytes.
      Specified by:
      codeLength in interface CodeAttribute
      Returns:
      The length of the code array in bytes
    • codeArray

      public byte[] codeArray()
      Description copied from interface: CodeAttribute
      Returns the bytes (bytecode) of the code array.
      Specified by:
      codeArray in interface CodeAttribute
      Returns:
      the bytes (bytecode) of the code array