gnu.expr

Class BuiltinEnvironment

public class BuiltinEnvironment extends Environment

An Environment containing the default bindings for the current Language. All lookup operatiosn are indirected to the current Language.
Method Summary
NamedLocationaddLocation(Symbol name, Object prop, Location loc)
voiddefine(Symbol key, Object property, Object newValue)
LocationEnumerationenumerateAllLocations()
LocationEnumerationenumerateLocations()
static BuiltinEnvironmentgetInstance()
EnvironmentgetLangEnvironment()
NamedLocationgetLocation(Symbol key, Object property, int hash, boolean create)
protected booleanhasMoreElements(LocationEnumeration it)
NamedLocationlookup(Symbol name, Object property, int hash)

Method Detail

addLocation

public NamedLocation addLocation(Symbol name, Object prop, Location loc)

define

public void define(Symbol key, Object property, Object newValue)

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()

enumerateLocations

public LocationEnumeration enumerateLocations()

getInstance

public static BuiltinEnvironment getInstance()

getLangEnvironment

public Environment getLangEnvironment()

getLocation

public NamedLocation getLocation(Symbol key, Object property, int hash, boolean create)

hasMoreElements

protected boolean hasMoreElements(LocationEnumeration it)

lookup

public NamedLocation lookup(Symbol name, Object property, int hash)