goldengine.java
Class LRAction

java.lang.Object
  |
  +--goldengine.java.LRAction

public class LRAction
extends java.lang.Object

-------------------------------------------------------------------------------------------
Source File: LRAction.java
Author: Devin Cook, Matthew Hawkins
Description: An LALR Action.
-------------------------------------------------------------------------------------------
Revision List

      Author          Version         Description
      ------          -------         -----------
      MPH             1.0             First Issue

-------------------------------------------------------------------------------------------
IMPORT: NONE
-------------------------------------------------------------------------------------------


Field Summary
 int actionConstant
          actionConstant This is the action that should be taken for this instance.
 int value
          value The value of the action.
 
Constructor Summary
LRAction()
           
 
Method Summary
 Symbol getSymbol()
          getSymbol This method will return the symbol associated with this action.
 int getSymbolIndex()
          getSymbolIndex This method will return the index of the smybol in the symbol table.
 void setSymbol(Symbol sym)
          setSymbol This method will set the symbol of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionConstant

public int actionConstant
actionConstant This is the action that should be taken for this instance.

value

public int value
value The value of the action.
Constructor Detail

LRAction

public LRAction()
Method Detail

setSymbol

public void setSymbol(Symbol sym)
setSymbol This method will set the symbol of this action.
Parameters:
sym - The symbol to set for this action.

getSymbolIndex

public int getSymbolIndex()
getSymbolIndex This method will return the index of the smybol in the symbol table.
Returns:
The index of the smybol in the symbol table.

getSymbol

public Symbol getSymbol()
getSymbol This method will return the symbol associated with this action.
Returns:
The symbol associated with this action.