Class CatchTable

All Implemented Interfaces:
ToHuman, Comparable<CatchTable>

public final class CatchTable extends FixedSizeList implements Comparable<CatchTable>
Table of catch entries. Each entry includes a range of code addresses for which it is valid and an associated CatchHandlerList.
  • Field Details

    • EMPTY

      public static final CatchTable EMPTY
      non-null; empty instance
  • Constructor Details

    • CatchTable

      public CatchTable(int size)
      Constructs an instance. All indices initially contain null.
      Parameters:
      size - >= 0; the size of the table
  • Method Details

    • get

      public CatchTable.Entry get(int n)
      Gets the element at the given index. It is an error to call this with the index for an element which was never set; if you do that, this will throw NullPointerException.
      Parameters:
      n - >= 0, < size(); which index
      Returns:
      non-null; element at that index
    • set

      public void set(int n, CatchTable.Entry entry)
      Sets the entry at the given index.
      Parameters:
      n - >= 0, < size(); which index
      entry - non-null; the entry to set at n
    • compareTo

      public int compareTo(CatchTable other)
      Specified by:
      compareTo in interface Comparable<CatchTable>