|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.pmd.cpd.cppast.SymtabManager
public class SymtabManager
Manages the symbol table and scopes within a given compilation unit.
Constructor Summary | |
---|---|
SymtabManager()
|
Method Summary | |
---|---|
static void |
CloseScope()
|
static Scope |
GetCurScope()
|
static Scope |
GetScope(java.lang.String name)
|
static Scope |
GetScopeOfFullyScopedName(java.lang.String name)
Returns the Scope of B in A::B::C. |
static boolean |
IsCtor(java.lang.String name)
For now, we just say if it is a class name, it is OK to call it a constructor. |
static boolean |
IsFullyScopedTypeName(java.lang.String name)
|
static boolean |
IsGlobalScope()
|
static boolean |
IsTypeName(java.lang.String name)
|
static void |
OpenScope(Scope sc)
|
static Scope |
OpenScope(java.lang.String scopeName,
boolean isType)
Opens a new scope (with optional name and type flag). |
static void |
PutTypeName(java.lang.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 static Scope OpenScope(java.lang.String scopeName, boolean isType)
public static void OpenScope(Scope sc)
public static void PutTypeName(java.lang.String name)
public static boolean IsFullyScopedTypeName(java.lang.String name)
public static boolean IsTypeName(java.lang.String name)
public static void CloseScope()
public static boolean IsCtor(java.lang.String name)
public static Scope GetCurScope()
public static Scope GetScope(java.lang.String name)
public static Scope GetScopeOfFullyScopedName(java.lang.String name)
public static boolean IsGlobalScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |