public class BuiltinEnvironment extends Environment
lookup operations are indirected to the
current Language.curEnvironment, INDIRECT_DEFINESnameKey| Modifier and Type | Method and Description |
|---|---|
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) |
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, usergetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic static BuiltinEnvironment getInstance()
public Environment getLangEnvironment()
public NamedLocation lookup(Symbol name, java.lang.Object property, int hash)
lookup in class Environmentpublic NamedLocation getLocation(Symbol key, java.lang.Object property, int hash, boolean create)
getLocation in class Environmentpublic void define(Symbol key, java.lang.Object property, java.lang.Object newValue)
define in class Environmentpublic LocationEnumeration enumerateLocations()
EnvironmentenumerateLocations in class Environmentpublic LocationEnumeration enumerateAllLocations()
EnvironmentenumerateAllLocations in class Environmentprotected boolean hasMoreElements(LocationEnumeration it)
hasMoreElements in class Environmentpublic NamedLocation addLocation(Symbol name, java.lang.Object prop, Location loc)
addLocation in class Environment