gnu.mapping
Class InheritingEnvironment

java.lang.Object
  extended by gnu.mapping.Procedure
      extended by gnu.mapping.Procedure1
          extended by gnu.mapping.NameMap
              extended by gnu.mapping.Environment
                  extended by gnu.mapping.SimpleEnvironment
                      extended by gnu.mapping.InheritingEnvironment
All Implemented Interfaces:
HasSetter, Named

public class InheritingEnvironment
extends SimpleEnvironment


Field Summary
 
Fields inherited from class gnu.mapping.Environment
INDIRECT_DEFINES
 
Constructor Summary
InheritingEnvironment(java.lang.String name, Environment parent)
           
 
Method Summary
 void addParent(Environment env)
           
 LocationEnumeration enumerateAllLocations()
          Does enumerate inherited Locations.
 NamedLocation getLocation(Symbol name, java.lang.Object property, int hash, boolean create)
           
 int getNumParents()
           
 Environment getParent(int index)
           
protected  boolean hasMoreElements(LocationEnumeration it)
           
 NamedLocation lookup(Symbol name, java.lang.Object property, int hash)
           
 NamedLocation lookupInherited(Symbol name, java.lang.Object property, int hash)
           
protected  void toStringBase(java.lang.StringBuffer sbuf)
           
 
Methods inherited from class gnu.mapping.SimpleEnvironment
addLocation, addUnboundLocation, define, define, entrySet, enumerateLocations, getCurrentLocation, lookup_global, lookupDirect, put, readExternal, readResolve, redefineError, remove, size, toStringVerbose, unlink, writeExternal
 
Methods inherited from class gnu.mapping.Environment
addLocation, addLocation, containsKey, current, defaultNamespace, get, get, get, get, get, getCanDefine, getCanRedefine, getCurrent, getFlags, getFunction, getFunction, getGlobal, getInstance, getLocation, getLocation, getLocation, getLocation, getSymbol, isBound, isBound, isLocked, lookup, lookup, make, make, make, put, put, put, putFunction, remove, remove, remove, remove, removeFunction, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, toString, user
 
Methods inherited from class gnu.mapping.NameMap
apply1, getChecked, set1
 
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, setN, setName, setProperty, setProperty, setSetter, setSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gnu.mapping.HasSetter
getSetter
 

Constructor Detail

InheritingEnvironment

public InheritingEnvironment(java.lang.String name,
                             Environment parent)
Method Detail

getNumParents

public final int getNumParents()

getParent

public final Environment getParent(int index)

addParent

public void addParent(Environment env)

lookupInherited

public NamedLocation lookupInherited(Symbol name,
                                     java.lang.Object property,
                                     int hash)

lookup

public NamedLocation lookup(Symbol name,
                            java.lang.Object property,
                            int hash)
Overrides:
lookup in class SimpleEnvironment

getLocation

public NamedLocation getLocation(Symbol name,
                                 java.lang.Object property,
                                 int hash,
                                 boolean create)
Overrides:
getLocation in class SimpleEnvironment

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()
Description copied from class: SimpleEnvironment
Does enumerate inherited Locations.

Overrides:
enumerateAllLocations in class SimpleEnvironment

hasMoreElements

protected boolean hasMoreElements(LocationEnumeration it)
Overrides:
hasMoreElements in class SimpleEnvironment

toStringBase

protected void toStringBase(java.lang.StringBuffer sbuf)
Overrides:
toStringBase in class SimpleEnvironment