gnu.expr
Class BuiltinEnvironment

java.lang.Object
  extended by gnu.mapping.PropertySet
      extended by gnu.mapping.Environment
          extended by gnu.expr.BuiltinEnvironment
All Implemented Interfaces:
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
 
Constructor Summary
BuiltinEnvironment()
           
 
Method Summary
 NamedLocation addLocation(Symbol name, java.lang.Object prop, Location loc)
           
 void define(Symbol key, java.lang.Object property, java.lang.Object newValue)
           
 LocationEnumeration enumerateAllLocations()
          Does enumerate inherited Locations.
 LocationEnumeration enumerateLocations()
          Does not enumerate inherited Locations.
static BuiltinEnvironment getInstance()
           
 Environment getLangEnvironment()
           
 NamedLocation getLocation(Symbol key, java.lang.Object property, int hash, boolean create)
           
protected  boolean hasMoreElements(LocationEnumeration it)
           
 NamedLocation lookup(Symbol name, java.lang.Object property, int hash)
           
 
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, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, toString, toStringVerbose, unlink, user
 
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuiltinEnvironment

public BuiltinEnvironment()
Method Detail

getInstance

public static BuiltinEnvironment getInstance()

getLangEnvironment

public Environment getLangEnvironment()

lookup

public NamedLocation lookup(Symbol name,
                            java.lang.Object property,
                            int hash)
Specified by:
lookup in class Environment

getLocation

public NamedLocation getLocation(Symbol key,
                                 java.lang.Object property,
                                 int hash,
                                 boolean create)
Specified by:
getLocation in class Environment

define

public void define(Symbol key,
                   java.lang.Object property,
                   java.lang.Object newValue)
Specified by:
define in class Environment

enumerateLocations

public LocationEnumeration enumerateLocations()
Description copied from class: Environment
Does not enumerate inherited Locations.

Specified by:
enumerateLocations in class Environment

enumerateAllLocations

public LocationEnumeration enumerateAllLocations()
Description copied from class: Environment
Does enumerate inherited Locations.

Specified by:
enumerateAllLocations in class Environment

hasMoreElements

protected boolean hasMoreElements(LocationEnumeration it)
Specified by:
hasMoreElements in class Environment

addLocation

public NamedLocation addLocation(Symbol name,
                                 java.lang.Object prop,
                                 Location loc)
Specified by:
addLocation in class Environment