Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.mapping.Location
gnu.mapping.IndirectableLocation
gnu.mapping.NamedLocation
public abstract class NamedLocation
extends IndirectableLocation
implements java.util.Map.Entry, EnvironmentKey
Field Summary |
Fields inherited from class gnu.mapping.IndirectableLocation | |
DIRECT_ON_SET , INDIRECT_FLUIDS , base , value |
Fields inherited from interface gnu.mapping.EnvironmentKey | |
FUNCTION |
Constructor Summary | |
|
Method Summary | |
boolean |
|
boolean |
|
Environment | |
Object |
|
Object | |
Symbol | |
int |
|
boolean |
|
boolean | |
void |
|
Object |
|
Methods inherited from class gnu.mapping.IndirectableLocation | |
getBase , getBaseForce , getEnvironment , getKeyProperty , getKeySymbol , isConstant , setAlias , setBase , undefine |
Methods inherited from class gnu.mapping.Location | |
entered , get , get , getBase , getKeyProperty , getKeySymbol , getValue , isBound , isConstant , make , make , make , print , set , setRestore , setValue , setWithSave , toString , undefine |
public boolean entered()
True if directly entered in an Environment. (Only if NamedLocation.)
public boolean equals(Object x)
public Environment getEnvironment()
- Overrides:
- getEnvironment in interface IndirectableLocation
public final Object getKey()
public final Object getKeyProperty()
- Specified by:
- getKeyProperty in interface EnvironmentKey
- Overrides:
- getKeyProperty in interface IndirectableLocation
public final Symbol getKeySymbol()
- Specified by:
- getKeySymbol in interface EnvironmentKey
- Overrides:
- getKeySymbol in interface IndirectableLocation
public int hashCode()
public final boolean matches(EnvironmentKey key)
- Specified by:
- matches in interface EnvironmentKey
public final boolean matches(Symbol symbol, Object property)
- Specified by:
- matches in interface EnvironmentKey
public void setRestore(Object oldValue, CallContext ctx)
Restore an old value.
- Overrides:
- setRestore in interface Location
- Parameters:
oldValue
- the return value from a prior setWithSave.
public Object setWithSave(Object newValue, CallContext ctx)
Set a value, but return cookie so old value can be restored. This is intended for fluid-let where (in the case of multiple threads) a simple save-restore isn't always the right thing.
- Overrides:
- setWithSave in interface Location