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_DEFINESFields inherited from class gnu.mapping.PropertySet
nameKey -
Method Summary
Modifier and TypeMethodDescriptionaddLocation(Symbol name, Object prop, Location loc) voidDoes enumerate inherited Locations.Does not enumerate inherited Locations.static BuiltinEnvironmentgetLocation(Symbol key, Object property, int hash, boolean create) protected booleanMethods 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, userMethods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Method Details
-
getInstance
-
getLangEnvironment
-
lookup
- Specified by:
lookupin classEnvironment
-
getLocation
- Specified by:
getLocationin classEnvironment
-
define
- Specified by:
definein classEnvironment
-
enumerateLocations
Description copied from class:EnvironmentDoes not enumerate inherited Locations.- Specified by:
enumerateLocationsin classEnvironment
-
enumerateAllLocations
Description copied from class:EnvironmentDoes enumerate inherited Locations.- Specified by:
enumerateAllLocationsin classEnvironment
-
hasMoreElements
- Specified by:
hasMoreElementsin classEnvironment
-
addLocation
- Specified by:
addLocationin classEnvironment
-