Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.mapping.Procedure
gnu.mapping.Procedure1
gnu.mapping.NameMap
gnu.mapping.Environment
gnu.mapping.SimpleEnvironment
public class SimpleEnvironment
extends Environment
Environment
.
Field Summary |
Fields inherited from class gnu.mapping.Environment | |
INDIRECT_DEFINES |
Constructor Summary | |
| |
|
Method Summary | |
NamedLocation |
|
protected NamedLocation |
|
void | |
NamedLocation | |
java.util.Set |
|
LocationEnumeration |
|
LocationEnumeration |
|
static Location |
|
NamedLocation |
|
protected boolean | |
NamedLocation | |
NamedLocation |
|
static Object |
|
void | |
void |
|
Object | |
protected void |
|
Object |
|
int |
|
protected void |
|
String |
|
Location | |
void |
|
Methods inherited from class gnu.mapping.Environment | |
addLocation , addLocation , addLocation , containsKey , current , defaultNamespace , define , enumerateAllLocations , enumerateLocations , get , get , get , get , get , getCanDefine , getCanRedefine , getCurrent , getFlags , getFunction , getFunction , getGlobal , getInstance , getLocation , getLocation , getLocation , getLocation , getLocation , getSymbol , hasMoreElements , isBound , isBound , isLocked , lookup , 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.Procedure1 | |
apply0 , apply1 , apply2 , apply3 , apply4 , applyN , numArgs |
Methods inherited from class gnu.mapping.Procedure | |
apply , apply , apply0 , apply1 , apply2 , apply3 , apply4 , applyN , check0 , check1 , check2 , check3 , check4 , checkArgCount , checkN , getName , getProperty , getSetter , getSymbol , match0 , match1 , match2 , match3 , match4 , matchN , maxArgs , minArgs , name , numArgs , removeProperty , set0 , set1 , setN , setName , setProperty , setProperty , setSetter , setSymbol , toString |
public SimpleEnvironment()
public SimpleEnvironment(String name)
public SimpleEnvironment(int capacity)
public NamedLocation addLocation(Symbol name, Object property, Location loc)
- Overrides:
- addLocation in interface Environment
protected NamedLocation addUnboundLocation(Symbol name, Object property, int hash)
public void define(Symbol sym, Object property, Object newValue)
- Overrides:
- define in interface Environment
public java.util.Set entrySet()
public LocationEnumeration enumerateAllLocations()
Does enumerate inherited Locations.
- Overrides:
- enumerateAllLocations in interface Environment
public LocationEnumeration enumerateLocations()
Does not enumerate inherited Locations.
- Overrides:
- enumerateLocations in interface Environment
public NamedLocation getLocation(Symbol name, Object property, int hash, boolean create)
- Overrides:
- getLocation in interface Environment
protected boolean hasMoreElements(LocationEnumeration it)
- Overrides:
- hasMoreElements in interface Environment
public NamedLocation lookup(Symbol name, Object property, int hash)
- Overrides:
- lookup in interface Environment
public void put(Symbol key, Object property, Object newValue)
- Overrides:
- put in interface Environment
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
public Object readResolve() throws ObjectStreamException
public Object remove(EnvironmentKey key)
Remove and undefine binding. (A more type-specific version of gnu.util.mape.remove.)
- Overrides:
- remove in interface Environment
- Returns:
- Old value
public int size()
Size does not include inherited Locations.
protected void toStringBase(StringBuffer sbuf)
public String toStringVerbose()
Overridden in sub-classes - useful for more verbose debug output.
- Overrides:
- toStringVerbose in interface Environment
public Location unlink(Symbol symbol, Object property, int hash)
Remove Location from this Environment. Does not explicitly undefine the location itself.
- Overrides:
- unlink in interface Environment
public void writeExternal(ObjectOutput out) throws IOException