Class TableEntryKey
- java.lang.Object
-
- ghidra.app.plugin.assembler.sleigh.util.TableEntryKey
-
- All Implemented Interfaces:
java.lang.Comparable<TableEntryKey>
- Direct Known Subclasses:
TableEntry
public class TableEntryKey extends java.lang.Object implements java.lang.Comparable<TableEntryKey>
A key in a (sparse) LR(0) transition table or LALR(1) action/goto table
-
-
Constructor Summary
Constructors Constructor Description TableEntryKey(int state, AssemblySymbol sym)
Create a new key for the given state and symbol
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TableEntryKey that)
boolean
equals(java.lang.Object that)
int
getState()
Get the state (row) of the key in the tableAssemblySymbol
getSym()
Get the symbol (column) of the entry in the tableint
hashCode()
-
-
-
Constructor Detail
-
TableEntryKey
public TableEntryKey(int state, AssemblySymbol sym)
Create a new key for the given state and symbol- Parameters:
state
- the rowsym
- the column
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(TableEntryKey that)
- Specified by:
compareTo
in interfacejava.lang.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
-
-