|
Parser v2.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Parser.SymbolTable
Represents a generic symbol table object.
Constructor Summary | |
SymbolTable()
|
Method Summary | |
void |
addEntry(java.lang.String name,
java.lang.Object value,
int level)
Adds an entry at the specified level. |
int |
getCurrentLevel()
Gets the current level in the stack. |
java.util.Hashtable |
getEntries(int level)
Gets the hashtable for a specified scope. |
java.lang.Object[] |
getEntry(java.lang.String name,
int highestLevel)
Gets the first entry with the same name (starting at the specified level). |
void |
popScope()
Removes a scoping block from the stack. |
void |
pushScope()
Adds a new scoping block to the stack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymbolTable()
Method Detail |
public int getCurrentLevel()
public void pushScope()
public void popScope()
public void addEntry(java.lang.String name, java.lang.Object value, int level)
name
- the name of the entry.value
- the value of the entry.level
- the level to start searching on.public java.lang.Object[] getEntry(java.lang.String name, int highestLevel)
name
- the name of the entry to look for.highestLevel
- the level to start searching on.public java.util.Hashtable getEntries(int level)
level
- the leve of scope to be returned.
|
Parser v2.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |