|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.jaco.rtti.cpp.SymtabManager
Manages the symbol table and scopes within a given compilation unit.
Constructor Summary | |
SymtabManager()
Dummy at the bottom of the stack so that no need to check for null. |
Method Summary | |
void |
closeScope()
|
Scope |
getCurScope()
|
String |
getName(String name)
searches up the scope stack to find the name. |
Scope |
getScope(String name)
|
Scope |
getScopeOfFullyScopedName(String name)
Returns the Scope of B in A::B::C. |
boolean |
isCtor(String name)
For now, we just say if it is a class name, it is OK to call it a constructor. |
boolean |
isFullyScopedTypeName(String name)
|
boolean |
isGlobalScope()
|
boolean |
isTypeName(String name)
|
void |
openScope(Scope sc)
|
Scope |
openScope(String scopeName,
boolean isType)
Opens a new scope (with optional name and type flag). |
void |
putTypeName(String name)
|
void |
putUsingName(String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymtabManager()
Method Detail |
public Scope openScope(String scopeName, boolean isType)
public void openScope(Scope sc)
public void putTypeName(String name)
public void putUsingName(String name)
public String getName(String name)
public boolean isFullyScopedTypeName(String name)
public boolean isTypeName(String name)
public void closeScope()
public boolean isCtor(String name)
public Scope getCurScope()
public Scope getScope(String name)
public Scope getScopeOfFullyScopedName(String name)
public boolean isGlobalScope()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |