Interface LocalVariableTableAttribute

All Superinterfaces:
Attribute<LocalVariableTableAttribute>, ClassfileElement, WritableElement<LocalVariableTableAttribute>
All Known Implementing Classes:
BoundAttribute.BoundLocalVariableTableAttribute, UnboundAttribute.UnboundLocalVariableTableAttribute

Models the LocalVariableTable attribute , which can appear on a Code attribute, and records debug information about local variables. Delivered as a LocalVariable when traversing the elements of a CodeModel, according to the setting of the Classfile.Option.processDebug(boolean) option.
  • Method Details

    • localVariables

      List<LocalVariableInfo> localVariables()
      Returns debug information for the local variables in this method.
      Returns:
      debug information for the local variables in this method
    • of

      Returns a LocalVariableTable attribute.
      Parameters:
      locals - the local variable descriptions
      Returns:
      a LocalVariableTable attribute