Class TableEntryKey

java.lang.Object
ghidra.app.plugin.assembler.sleigh.util.TableEntryKey
All Implemented Interfaces:
Comparable<TableEntryKey>
Direct Known Subclasses:
TableEntry

public class TableEntryKey extends Object implements Comparable<TableEntryKey>
A key in a (sparse) LR(0) transition table or LALR(1) action/goto table
See Also:
  • Constructor Details

    • TableEntryKey

      public TableEntryKey(int state, AssemblySymbol sym)
      Create a new key for the given state and symbol
      Parameters:
      state - the row
      sym - the column
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(TableEntryKey that)
      Specified by:
      compareTo in interface Comparable<TableEntryKey>
    • getState

      public int getState()
      Get the state (row) of the key in the table
      Returns:
      the state
    • getSym

      public AssemblySymbol getSym()
      Get the symbol (column) of the entry in the table
      Returns:
      the symbol