net.sourceforge.pmd.cpd.cppast
Class ClassScope

java.lang.Object
  extended bynet.sourceforge.pmd.cpd.cppast.Scope
      extended bynet.sourceforge.pmd.cpd.cppast.ClassScope

public class ClassScope
extends Scope

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


Field Summary
(package private)  java.util.Vector superClasses
          The list of scopes corresponding to classes this class inherits.
 
Fields inherited from class net.sourceforge.pmd.cpd.cppast.Scope
parent, scopeName, type, typeTable
 
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 net.sourceforge.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
 

Field Detail

superClasses

java.util.Vector superClasses
The list of scopes corresponding to classes this class inherits.

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


Copyright © 2002-2005 InfoEther. All Rights Reserved.