|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyntax.Scope
Field Summary | |
boolean |
isANameSpaceScope
Indicates whether this is a namespace scope or not. |
java.lang.String |
scopeName
Name of the scope (set only for class/function scopes). |
Constructor Summary | |
Scope(Scope p,
boolean nameSpaceScope)
Creates an unnamed scope (like for compound statements). |
|
Scope(java.lang.String name,
boolean isType,
Scope p,
boolean nameSpaceScope)
Creates a scope object with a given name. |
Method Summary | |
void |
AddNamespace(Scope sc)
Add a namespace. |
Scope |
GetScope(java.lang.String name)
|
boolean |
IsTypeName(java.lang.String name)
Checks if a given name is the name of a type in this scope. |
boolean |
IsVarName(java.lang.String name)
Checks if a given name is the name of a variable in this scope. |
void |
PutTypeName(java.lang.String name)
Inserts a name into the table to say that it is the name of a type. |
void |
PutTypeName(java.lang.String name,
Scope sc)
A type with a scope (class/struct/union). |
void |
PutVarName(java.lang.String name)
Inserts a name into the table to say that it is the name of a variable and therefore it is NOT the name of a type, thus overriding any outer type definition with the same name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String scopeName
public boolean isANameSpaceScope
Constructor Detail |
public Scope(java.lang.String name, boolean isType, Scope p, boolean nameSpaceScope)
public Scope(Scope p, boolean nameSpaceScope)
Method Detail |
public void PutTypeName(java.lang.String name)
public void PutVarName(java.lang.String name)
public void PutTypeName(java.lang.String name, Scope sc)
public void AddNamespace(Scope sc)
public boolean IsTypeName(java.lang.String name)
public boolean IsVarName(java.lang.String name)
public Scope GetScope(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |