public class InheritingEnvironment extends SimpleEnvironment
curEnvironment, INDIRECT_DEFINES nameKey | Constructor and Description |
|---|
InheritingEnvironment (java.lang.String name,
Environment parent) |
| Modifier and Type | Method and Description |
|---|---|
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) |
addLocation, addUnboundLocation, define, define, entrySet, enumerateLocations, getCurrentLocation, lookup_global, lookupDirect, newLocation, put, readExternal, readResolve, redefineError, size, toStringVerbose, unlink, writeExternal addLocation, addLocation, containsKey, current, defaultNamespace, get, get, get, get, get, getCanDefine, getCanRedefine, getChecked, 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, remove, removeFunction, restoreCurrent, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, setSaveCurrent, toString, user getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic InheritingEnvironment(java.lang.String name, Environment parent)
public final int getNumParents()
public final Environment getParent(int index)
public void addParent(Environment env)
public NamedLocation lookupInherited(Symbol name, java.lang.Object property, int hash)
public NamedLocation lookup(Symbol name, java.lang.Object property, int hash)
lookup in class SimpleEnvironment public NamedLocation getLocation(Symbol name, java.lang.Object property, int hash, boolean create)
getLocation in class SimpleEnvironment public LocationEnumeration enumerateAllLocations()
SimpleEnvironment enumerateAllLocations in class SimpleEnvironment protected boolean hasMoreElements(LocationEnumeration it)
hasMoreElements in class SimpleEnvironment protected void toStringBase(java.lang.StringBuffer sbuf)
toStringBase in class SimpleEnvironment