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
public static class AbstractScriptEngineFactory.BindingsEnvironment extends InheritingEnvironment
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
Constructors Constructor Description BindingsEnvironment(String name, Bindings ebindings, Bindings gbindings, Environment builtin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
define(Symbol key, Object property, Object newValue)
LocationEnumeration
enumerateAllLocations()
Does enumerate inherited Locations.LocationEnumeration
enumerateLocations()
Does not enumerate inherited Locations.void
fixEntries()
NamedLocation
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 Detail
-
BindingsEnvironment
public BindingsEnvironment(String name, Bindings ebindings, Bindings gbindings, Environment builtin)
-
-
Method Detail
-
newLocation
protected NamedLocation newLocation(Symbol name, Object property)
- Overrides:
newLocation
in classSimpleEnvironment
-
lookupDirect
public NamedLocation lookupDirect(Symbol name, Object property, int hash)
- Overrides:
lookupDirect
in classSimpleEnvironment
-
define
public void define(Symbol key, Object property, Object newValue)
- Overrides:
define
in classSimpleEnvironment
-
fixEntries
public void fixEntries()
-
enumerateLocations
public LocationEnumeration enumerateLocations()
Description copied from class:SimpleEnvironment
Does not enumerate inherited Locations.- Overrides:
enumerateLocations
in classSimpleEnvironment
-
enumerateAllLocations
public LocationEnumeration enumerateAllLocations()
Description copied from class:SimpleEnvironment
Does enumerate inherited Locations.- Overrides:
enumerateAllLocations
in classInheritingEnvironment
-
-