gnu.mapping
public abstract class Location extends Object
| Field Summary | |
|---|---|
| static String | UNBOUND Magic value used to indicate there is no property binding. |
| Constructor Summary | |
|---|---|
| Location() | |
| Method Summary | |
|---|---|
| boolean | entered() True if directly entered in an Environment. |
| abstract Object | get(Object defaultValue) |
| Object | get() Get the current value of this location. |
| Location | getBase() |
| Object | getKeyProperty() |
| Symbol | getKeySymbol() |
| Object | getValue() |
| boolean | isBound() |
| boolean | isConstant() |
| static Location | make(Object init, String name) |
| static IndirectableLocation | make(String name) |
| static IndirectableLocation | make(Symbol name) |
| void | print(PrintWriter ps) |
| abstract void | set(Object value) |
| void | setRestore(Object oldValue, CallContext ctx) Restore an old value. |
| Object | setValue(Object newValue) |
| Object | setWithSave(Object newValue, CallContext ctx) Set a value, but return cookie so old value can be restored.
|
| String | toString() |
| void | undefine() |
Throws: UnboundLocationException the location does not have a value.
Parameters: oldValue the return value from a prior setWithSave.