com.veromodo.tempo.sem
Class HTScope

java.lang.Object
  extended by com.veromodo.tempo.sem.HTScope
All Implemented Interfaces:
IScope
Direct Known Subclasses:
RootScope

public class HTScope
extends java.lang.Object
implements IScope


Field Summary
 
Fields inherited from interface com.veromodo.tempo.sem.IScope
CHECKALL
 
Constructor Summary
HTScope(java.lang.String name)
           
 
Method Summary
 boolean addDelegate(IScope s)
          The methods returns true if and only if the scope was not already present among delegates.
 void addSymbol(java.lang.String n, Descriptor d)
           
 java.util.Hashtable<java.lang.String,Descriptor> collectDescriptor(DescriptorPredicate p)
           
 java.util.Hashtable<java.lang.String,Descriptor> collectDescriptor(java.util.EnumSet<Descriptor.Kind> mbrOf)
           
 java.util.HashSet<Descriptor> getClosestSymbol(java.lang.String n, DescriptorPredicate p)
           
 java.util.Collection<IScope> getDelegates()
           
 java.lang.String getName()
           
 IScope getParent()
           
 IScope getRoot()
           
 java.util.HashSet<Descriptor> getSymbol(java.lang.String n, DescriptorPredicate p, int stamp, intWrapper calls, int depth)
           
 java.util.HashSet<Descriptor> getSymbol(java.lang.String n, java.util.EnumSet<Descriptor.Kind> mbrOf, int stamp, intWrapper call)
           
 boolean hasSymbol(java.lang.String n, DescriptorPredicate p, boolean rec)
           
 IScope resolve()
           
 void setParent(IScope p)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTScope

public HTScope(java.lang.String name)
Method Detail

addDelegate

public boolean addDelegate(IScope s)
The methods returns true if and only if the scope was not already present among delegates.

Specified by:
addDelegate in interface IScope

getDelegates

public java.util.Collection<IScope> getDelegates()
Specified by:
getDelegates in interface IScope

setParent

public void setParent(IScope p)
Specified by:
setParent in interface IScope

getParent

public IScope getParent()
Specified by:
getParent in interface IScope

resolve

public IScope resolve()
Specified by:
resolve in interface IScope

addSymbol

public void addSymbol(java.lang.String n,
                      Descriptor d)
Specified by:
addSymbol in interface IScope

hasSymbol

public boolean hasSymbol(java.lang.String n,
                         DescriptorPredicate p,
                         boolean rec)
Specified by:
hasSymbol in interface IScope

getSymbol

public java.util.HashSet<Descriptor> getSymbol(java.lang.String n,
                                               DescriptorPredicate p,
                                               int stamp,
                                               intWrapper calls,
                                               int depth)
Specified by:
getSymbol in interface IScope

getSymbol

public java.util.HashSet<Descriptor> getSymbol(java.lang.String n,
                                               java.util.EnumSet<Descriptor.Kind> mbrOf,
                                               int stamp,
                                               intWrapper call)
Specified by:
getSymbol in interface IScope

getClosestSymbol

public java.util.HashSet<Descriptor> getClosestSymbol(java.lang.String n,
                                                      DescriptorPredicate p)
Specified by:
getClosestSymbol in interface IScope

collectDescriptor

public java.util.Hashtable<java.lang.String,Descriptor> collectDescriptor(DescriptorPredicate p)
Specified by:
collectDescriptor in interface IScope

collectDescriptor

public java.util.Hashtable<java.lang.String,Descriptor> collectDescriptor(java.util.EnumSet<Descriptor.Kind> mbrOf)
Specified by:
collectDescriptor in interface IScope

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface IScope

getRoot

public IScope getRoot()
Specified by:
getRoot in interface IScope