public class InheritingEnvironment extends SimpleEnvironment
curEnvironment, INDIRECT_DEFINESnameKey| 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, writeExternaladdLocation, 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, usergetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic 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 SimpleEnvironmentpublic NamedLocation getLocation(Symbol name, java.lang.Object property, int hash, boolean create)
getLocation in class SimpleEnvironmentpublic LocationEnumeration enumerateAllLocations()
SimpleEnvironmentenumerateAllLocations in class SimpleEnvironmentprotected boolean hasMoreElements(LocationEnumeration it)
hasMoreElements in class SimpleEnvironmentprotected void toStringBase(java.lang.StringBuffer sbuf)
toStringBase in class SimpleEnvironment