Class InheritingEnvironment
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Environment
gnu.mapping.SimpleEnvironment
gnu.mapping.InheritingEnvironment
- All Implemented Interfaces:
Named
- Direct Known Subclasses:
AbstractScriptEngineFactory.BindingsEnvironment
-
Field Summary
Fields inherited from class Environment
curEnvironment, INDIRECT_DEFINESFields inherited from class PropertySet
nameKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParent(Environment env) Does enumerate inherited Locations.getLocation(Symbol name, Object property, int hash, boolean create) final intfinal EnvironmentgetParent(int index) protected booleanlookupInherited(Symbol name, Object property, int hash) protected voidtoStringBase(StringBuffer sbuf) Methods inherited from class SimpleEnvironment
addLocation, addUnboundLocation, define, define, entrySet, enumerateLocations, getCurrentLocation, lookup_global, lookupDirect, newLocation, put, readExternal, readResolve, redefineError, size, toStringVerbose, unlink, writeExternalMethods inherited from class 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, putFunction, remove, remove, remove, remove, remove, removeFunction, restoreCurrent, setCanDefine, setCanRedefine, setCurrent, setFlag, setGlobal, setIndirectDefines, setLocked, setSaveCurrent, toString, userMethods inherited from class PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
Constructor Details
-
InheritingEnvironment
-
-
Method Details
-
getNumParents
public final int getNumParents() -
getParent
-
addParent
-
lookupInherited
-
lookup
- Overrides:
lookupin classSimpleEnvironment
-
getLocation
- Overrides:
getLocationin classSimpleEnvironment
-
enumerateAllLocations
Description copied from class:SimpleEnvironmentDoes enumerate inherited Locations.- Overrides:
enumerateAllLocationsin classSimpleEnvironment
-
hasMoreElements
- Overrides:
hasMoreElementsin classSimpleEnvironment
-
toStringBase
- Overrides:
toStringBasein classSimpleEnvironment
-