|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--goldengine.java.Token
-------------------------------------------------------------------------------------------
Source File: Token.java
Author: Devin Cook, Matthew Hawkins
Description: A representation of a token associated with this grammar.
-------------------------------------------------------------------------------------------
Revision List
Author Version Description
------ ------- -----------
MPH 1.0 First Issue
| Constructor Summary | |
Token()
Token The constructor initialises the data of this Token. |
|
| Method Summary | |
java.lang.Object |
getData()
getData This method will get the data of this Token. |
int |
getKind()
getKind This method will get the kind of this Token. |
java.lang.String |
getName()
getName This method will get the name of this Token. |
Symbol |
getPSymbol()
getPSymbol This method will get the parent symbol of this Token. |
int |
getState()
getState This method will get the State of this Token. |
int |
getTableIndex()
getTableIndex This method will get the table index of this Token. |
java.lang.String |
getText()
getText This method will get the text of this Token. |
void |
setData(java.lang.Object value)
setData This method will set the data of this token to that passed in. |
void |
setParentSymbol(Symbol theSymbol)
setParentSymbol This method will set the parent symbol of this token to that passed in. |
void |
setState(int newState)
setState This method will set the state of this token to that passed in. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Token()
| Method Detail |
public int getState()
public int getKind()
public int getTableIndex()
public java.lang.Object getData()
public java.lang.String getText()
public java.lang.String getName()
public Symbol getPSymbol()
public void setState(int newState)
newState - The new state of the token.public void setData(java.lang.Object value)
value - The new data of the token.public void setParentSymbol(Symbol theSymbol)
theSymbol - The new parent symbol of the token.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||