gnu.mapping

Class InheritingEnvironment

Implemented Interfaces:
Named

public class InheritingEnvironment
extends SimpleEnvironment

Field Summary

Fields inherited from class gnu.mapping.Environment

INDIRECT_DEFINES

Constructor Summary

InheritingEnvironment(String name, Environment parent)

Method Summary

void
addParent(Environment env)
LocationEnumeration
enumerateAllLocations()
Does enumerate inherited Locations.
NamedLocation
getLocation(Symbol name, Object property, int hash, boolean create)
int
getNumParents()
Environment
getParent(int index)
protected boolean
hasMoreElements(LocationEnumeration it)
NamedLocation
lookup(Symbol name, Object property, int hash)
NamedLocation
lookupInherited(Symbol name, Object property, int hash)
protected void
toStringBase(StringBuffer sbuf)

Methods inherited from class gnu.mapping.SimpleEnvironment

addLocation, addUnboundLocation, define, define, entrySet, enumerateAllLocations, enumerateLocations, getCurrentLocation, getLocation, hasMoreElements, lookup, lookupDirect, lookup_global, put, readExternal, readResolve, redefineError, size, toStringBase, toStringVerbose, unlink, writeExternal

Methods inherited from class gnu.mapping.Environment

addLocation, addLocation, addLocation, containsKey, current, defaultNamespace, define, enumerateAllLocations, enumerateLocations, get, get, get, get, get, getCanDefine, getCanRedefine, getChecked, getCurrent, getFlags, getFunction, getFunction, getGlobal, getInstance, getLocation, getLocation, getLocation, getLocation, getLocation, getSymbol, hasMoreElements, isBound, isBound, isLocked, lookup, lookup, lookup, make, make, make, put, put, put, put, putFunction, remove, remove, remove, remove, remove, removeFunction, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, toString, toStringVerbose, unlink, user

Methods inherited from class gnu.mapping.PropertySet

getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol

Constructor Details

InheritingEnvironment

public InheritingEnvironment(String name,
                             Environment parent)

Method Details

addParent

public void addParent(Environment env)

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()
Does enumerate inherited Locations.
Overrides:
enumerateAllLocations in interface SimpleEnvironment

getLocation

public NamedLocation getLocation(Symbol name,
                                 Object property,
                                 int hash,
                                 boolean create)
Overrides:
getLocation in interface SimpleEnvironment

getNumParents

public final int getNumParents()

getParent

public final Environment getParent(int index)

hasMoreElements

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

lookup

public NamedLocation lookup(Symbol name,
                            Object property,
                            int hash)
Overrides:
lookup in interface SimpleEnvironment

lookupInherited

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

toStringBase

protected void toStringBase(StringBuffer sbuf)
Overrides:
toStringBase in interface SimpleEnvironment