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
ConstructorsConstructorDescriptionTableEntryKey(int state, AssemblySymbol sym) Create a new key for the given state and symbol -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(TableEntryKey that) booleanintgetState()Get the state (row) of the key in the tablegetSym()Get the symbol (column) of the entry in the tableinthashCode()
-
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:
compareToin 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
-