org.acm.seguin.pmd.cpd.cppast
Class ClassScope

java.lang.Object
  extended by org.acm.seguin.pmd.cpd.cppast.Scope
      extended by org.acm.seguin.pmd.cpd.cppast.ClassScope

public class ClassScope
extends Scope

Class scope extends Scope in that its search method also searches all its superclasses.


Constructor Summary
ClassScope(java.lang.String name, Scope parent)
          Creates a new class scope in a given scope.
 
Method Summary
 void AddSuper(Scope sc)
          Add a super class.
 boolean IsTypeName(java.lang.String name)
          Overrides the method in Scope.
 
Methods inherited from class org.acm.seguin.pmd.cpd.cppast.Scope
GetScope, PutTypeName, PutTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassScope

public ClassScope(java.lang.String name,
                  Scope parent)
Creates a new class scope in a given scope.

Method Detail

AddSuper

public void AddSuper(Scope sc)
Add a super class.


IsTypeName

public boolean IsTypeName(java.lang.String name)
Overrides the method in Scope. It also searches in the inherited classes' scopes also.

Overrides:
IsTypeName in class Scope