Package gnu.mapping
Class InheritingEnvironment
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Environment
gnu.mapping.SimpleEnvironment
gnu.mapping.InheritingEnvironment
- All Implemented Interfaces:
Named
- Direct Known Subclasses:
AbstractScriptEngineFactory.BindingsEnvironment
-
Field Summary
Fields inherited from class gnu.mapping.Environment
curEnvironment, INDIRECT_DEFINES
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParent
(Environment env) Does enumerate inherited Locations.getLocation
(Symbol name, Object property, int hash, boolean create) final int
final Environment
getParent
(int index) protected boolean
lookupInherited
(Symbol name, Object property, int hash) protected void
toStringBase
(StringBuffer sbuf) Methods inherited from class gnu.mapping.SimpleEnvironment
addLocation, addUnboundLocation, define, define, entrySet, enumerateLocations, getCurrentLocation, lookup_global, lookupDirect, newLocation, put, readExternal, readResolve, redefineError, size, toStringVerbose, unlink, writeExternal
Methods inherited from class gnu.mapping.Environment
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
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Constructor Details
-
InheritingEnvironment
-
-
Method Details
-
getNumParents
public final int getNumParents() -
getParent
-
addParent
-
lookupInherited
-
lookup
- Overrides:
lookup
in classSimpleEnvironment
-
getLocation
- Overrides:
getLocation
in classSimpleEnvironment
-
enumerateAllLocations
Description copied from class:SimpleEnvironment
Does enumerate inherited Locations.- Overrides:
enumerateAllLocations
in classSimpleEnvironment
-
hasMoreElements
- Overrides:
hasMoreElements
in classSimpleEnvironment
-
toStringBase
- Overrides:
toStringBase
in classSimpleEnvironment
-