public class BuiltinEnvironment extends Environment
lookup
operations are indirected to the
current Language
.curEnvironment, INDIRECT_DEFINES
nameKey
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, user
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
public static BuiltinEnvironment getInstance()
public Environment getLangEnvironment()
public NamedLocation lookup(Symbol name, java.lang.Object property, int hash)
lookup
in class Environment
public NamedLocation getLocation(Symbol key, java.lang.Object property, int hash, boolean create)
getLocation
in class Environment
public void define(Symbol key, java.lang.Object property, java.lang.Object newValue)
define
in class Environment
public LocationEnumeration enumerateLocations()
Environment
enumerateLocations
in class Environment
public LocationEnumeration enumerateAllLocations()
Environment
enumerateAllLocations
in class Environment
protected boolean hasMoreElements(LocationEnumeration it)
hasMoreElements
in class Environment
public NamedLocation addLocation(Symbol name, java.lang.Object prop, Location loc)
addLocation
in class Environment