|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--goldengine.java.Symbol
-------------------------------------------------------------------------------------------
Source File: Symbol.java
Author: Devin Cook, Matthew Hawkins
Description: A representation of a symbol associated with this grammar.
-------------------------------------------------------------------------------------------
Revision List
Author Version Description
------ ------- -----------
MPH 1.0 First Issue
MPH 1.1 Added isEqual method
| Fields inherited from interface goldengine.java.SymbolTypeConstants |
symbolTypeCommentEnd, symbolTypeCommentLine, symbolTypeCommentStart, symbolTypeEnd, symbolTypeError, symbolTypeNonterminal, symbolTypeTerminal, symbolTypeWhitespace |
| Constructor Summary | |
Symbol()
Symbol The constructor simply initialises the table index. |
|
| Method Summary | |
int |
getKind()
getKind This method gets the kind of symbol (defined in SymbolTypeConstants). |
java.lang.String |
getName()
getName This method gets the name of the symbol. |
int |
getTableIndex()
getTableIndex This method gets the table index of this symbol. |
java.lang.String |
getText()
getText This method will create a text representation of this Symbol. |
boolean |
isEqual(Symbol other)
isEqual #ver1.1# This method will check equality of two Symbols - this and the one passed in. |
void |
setKind(int newKind)
setKind This method sets the kind of the symbol (defined in SymbolTypeConstants). |
void |
setName(java.lang.String newName)
setName This method sets the name of the symbol. |
void |
setTableIndex(int newTab)
setTableIndex This method sets the table index of the symbol. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Symbol()
| Method Detail |
public java.lang.String getName()
public int getKind()
public int getTableIndex()
public void setName(java.lang.String newName)
newName - The name of the symbol.public void setKind(int newKind)
newKind - public void setTableIndex(int newTab)
newTab - The kind of symbol.public java.lang.String getText()
public boolean isEqual(Symbol other)
other - The symbol to check against this one.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||