gnu.expr

Class BuiltinEnvironment

Implemented Interfaces:
HasSetter, Named

public class BuiltinEnvironment
extends Environment

An Environment containing the default bindings for the current Language. All lookup operatiosn are indirected to the current Language.

Field Summary

Fields inherited from class gnu.mapping.Environment

INDIRECT_DEFINES

Method Summary

NamedLocation
addLocation(Symbol name, Object prop, Location loc)
void
define(Symbol key, Object property, Object newValue)
LocationEnumeration
enumerateAllLocations()
Does enumerate inherited Locations.
LocationEnumeration
enumerateLocations()
Does not enumerate inherited Locations.
static BuiltinEnvironment
getInstance()
Environment
getLangEnvironment()
NamedLocation
getLocation(Symbol key, Object property, int hash, boolean create)
protected boolean
hasMoreElements(LocationEnumeration it)
NamedLocation
lookup(Symbol name, Object property, int hash)

Methods inherited from class gnu.mapping.Environment

addLocation, addLocation, addLocation, containsKey, current, defaultNamespace, define, enumerateAllLocations, enumerateLocations, get, get, get, get, get, getCanDefine, getCanRedefine, getCurrent, getFlags, getFunction, getFunction, getGlobal, getInstance, getLocation, getLocation, getLocation, getLocation, getLocation, getSymbol, hasMoreElements, isBound, isBound, isLocked, lookup, lookup, lookup, make, make, make, put, put, put, put, putFunction, remove, remove, remove, remove, remove, removeFunction, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, toString, toStringVerbose, unlink, user

Methods inherited from class gnu.mapping.NameMap

apply1, get, get, getChecked, put, set1

Methods inherited from class gnu.mapping.Procedure1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Method Details

addLocation

public NamedLocation addLocation(Symbol name,
                                 Object prop,
                                 Location loc)
Overrides:
addLocation in interface Environment

define

public void define(Symbol key,
                   Object property,
                   Object newValue)
Overrides:
define in interface Environment

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()
Does enumerate inherited Locations.
Overrides:
enumerateAllLocations in interface Environment

enumerateLocations

public LocationEnumeration enumerateLocations()
Does not enumerate inherited Locations.
Overrides:
enumerateLocations in interface Environment

getInstance

public static BuiltinEnvironment getInstance()

getLangEnvironment

public Environment getLangEnvironment()

getLocation

public NamedLocation getLocation(Symbol key,
                                 Object property,
                                 int hash,
                                 boolean create)
Overrides:
getLocation in interface Environment

hasMoreElements

protected boolean hasMoreElements(LocationEnumeration it)
Overrides:
hasMoreElements in interface Environment

lookup

public NamedLocation lookup(Symbol name,
                            Object property,
                            int hash)
Overrides:
lookup in interface Environment