|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cppast.SymbolTable
public final class SymbolTable
Manages the symbol table and scopes.
Constructor Summary | |
---|---|
SymbolTable()
Creates a symbol table. |
Method Summary | |
---|---|
void |
closeScope()
Close current scope. |
void |
closeScopes()
Close all scopes. |
void |
extend(java.lang.String name)
Extend the current scope with another scope. |
Scope |
getCurrentScope()
|
void |
openScope(java.lang.String name)
Opens a scope of a given name. |
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 void openScope(java.lang.String name)
name
- a non-null scope namepublic void closeScope()
public void closeScopes()
public Scope getCurrentScope()
public void extend(java.lang.String name)
name
- the name of the extension scope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |