Package gnu.expr
Class BuiltinEnvironment
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Environment
gnu.expr.BuiltinEnvironment
- All Implemented Interfaces:
Named
An Environment containing the default bindings for the current Language.
This is a singleton class.
All
lookup
operations are indirected to the
current Language
.-
Field Summary
Fields inherited from class gnu.mapping.Environment
curEnvironment, INDIRECT_DEFINES
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
Method Summary
Modifier and TypeMethodDescriptionaddLocation
(Symbol name, Object prop, Location loc) void
Does enumerate inherited Locations.Does not enumerate inherited Locations.static BuiltinEnvironment
getLocation
(Symbol key, Object property, int hash, boolean create) protected boolean
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, put, putFunction, remove, remove, remove, remove, remove, removeFunction, restoreCurrent, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, setSaveCurrent, toString, toStringVerbose, unlink, user
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Method Details
-
getInstance
-
getLangEnvironment
-
lookup
- Specified by:
lookup
in classEnvironment
-
getLocation
- Specified by:
getLocation
in classEnvironment
-
define
- Specified by:
define
in classEnvironment
-
enumerateLocations
Description copied from class:Environment
Does not enumerate inherited Locations.- Specified by:
enumerateLocations
in classEnvironment
-
enumerateAllLocations
Description copied from class:Environment
Does enumerate inherited Locations.- Specified by:
enumerateAllLocations
in classEnvironment
-
hasMoreElements
- Specified by:
hasMoreElements
in classEnvironment
-
addLocation
- Specified by:
addLocation
in classEnvironment
-