| java.lang.Object org.acm.seguin.pmd.cpd.cppast.Scope
All known Subclasses: org.acm.seguin.pmd.cpd.cppast.ClassScope,
Scope | public class Scope (Code) | | |
Field Summary | |
Scope | parent Parent scope. | String | scopeName Name of the scope (set only for class/function scopes). | boolean | type Indicates whether this is a class scope or not. | Hashtable | typeTable (partial) table of type symbols introduced in this scope. |
Constructor Summary | |
public | Scope(String name, boolean isType, Scope p) Creates a scope object with a given name. | public | Scope(Scope p) Creates an unnamed scope (like for compound statements). |
parent | Scope parent(Code) | | Parent scope. (null if it is the global scope).
|
scopeName | String scopeName(Code) | | Name of the scope (set only for class/function scopes).
|
type | boolean type(Code) | | Indicates whether this is a class scope or not.
|
typeTable | Hashtable typeTable(Code) | | (partial) table of type symbols introduced in this scope.
|
Scope | public Scope(String name, boolean isType, Scope p)(Code) | | Creates a scope object with a given name.
|
Scope | public Scope(Scope p)(Code) | | Creates an unnamed scope (like for compound statements).
|
IsTypeName | public boolean IsTypeName(String name)(Code) | | Checks if a given name is the name of a type in this scope.
|
PutTypeName | public void PutTypeName(String name)(Code) | | Inserts a name into the table to say that it is the name of a type.
|
PutTypeName | public void PutTypeName(String name, Scope sc)(Code) | | A type with a scope (class/struct/union).
|
|
|