Class TableEntryKey
java.lang.Object
ghidra.app.plugin.assembler.sleigh.util.TableEntryKey
- All Implemented Interfaces:
Comparable<TableEntryKey>
- Direct Known Subclasses:
TableEntry
A key in a (sparse) LR(0) transition table or LALR(1) action/goto table
- See Also:
-
Constructor Summary
ConstructorDescriptionTableEntryKey
(int state, AssemblySymbol sym) Create a new key for the given state and symbol -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(TableEntryKey that) boolean
int
getState()
Get the state (row) of the key in the tablegetSym()
Get the symbol (column) of the entry in the tableint
hashCode()
-
Constructor Details
-
TableEntryKey
Create a new key for the given state and symbol- Parameters:
state
- the rowsym
- the column
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<TableEntryKey>
-
getState
public int getState()Get the state (row) of the key in the table- Returns:
- the state
-
getSym
Get the symbol (column) of the entry in the table- Returns:
- the symbol
-