Package gnu.expr
Class AbstractScriptEngineFactory.BindingsEnvironment
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Environment
gnu.mapping.SimpleEnvironment
gnu.mapping.InheritingEnvironment
gnu.expr.AbstractScriptEngineFactory.BindingsEnvironment
- All Implemented Interfaces:
Named
- Enclosing class:
AbstractScriptEngineFactory
A Environment that proxies lookup in global and engine Bindings.
-
Field Summary
Fields inherited from class gnu.mapping.Environment
curEnvironment, INDIRECT_DEFINES
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
Constructor Summary
ConstructorsConstructorDescriptionBindingsEnvironment
(String name, Bindings ebindings, Bindings gbindings, Environment builtin) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Does enumerate inherited Locations.Does not enumerate inherited Locations.void
lookupDirect
(Symbol name, Object property, int hash) protected NamedLocation
newLocation
(Symbol name, Object property) Methods inherited from class gnu.mapping.InheritingEnvironment
addParent, getLocation, getNumParents, getParent, hasMoreElements, lookup, lookupInherited, toStringBase
Methods inherited from class gnu.mapping.SimpleEnvironment
addLocation, addUnboundLocation, define, entrySet, getCurrentLocation, lookup_global, 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
-
BindingsEnvironment
public BindingsEnvironment(String name, Bindings ebindings, Bindings gbindings, Environment builtin)
-
-
Method Details
-
newLocation
- Overrides:
newLocation
in classSimpleEnvironment
-
lookupDirect
- Overrides:
lookupDirect
in classSimpleEnvironment
-
define
- Overrides:
define
in classSimpleEnvironment
-
fixEntries
public void fixEntries() -
enumerateLocations
Description copied from class:SimpleEnvironment
Does not enumerate inherited Locations.- Overrides:
enumerateLocations
in classSimpleEnvironment
-
enumerateAllLocations
Description copied from class:SimpleEnvironment
Does enumerate inherited Locations.- Overrides:
enumerateAllLocations
in classInheritingEnvironment
-