|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.mapping.Location
public abstract class Location
A Location is an abstract cell/location/variable with a value.
Field Summary | |
---|---|
static java.lang.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. |
java.lang.Object |
get()
Get the current value of this location. |
abstract java.lang.Object |
get(java.lang.Object defaultValue)
|
Location |
getBase()
|
java.lang.Object |
getKeyProperty()
|
Symbol |
getKeySymbol()
|
java.lang.Object |
getValue()
|
boolean |
isBound()
|
boolean |
isConstant()
|
static Location |
make(java.lang.Object init,
java.lang.String name)
|
static IndirectableLocation |
make(java.lang.String name)
|
static IndirectableLocation |
make(Symbol name)
|
void |
print(java.io.PrintWriter ps)
|
abstract void |
set(java.lang.Object value)
|
void |
setRestore(java.lang.Object oldValue,
CallContext ctx)
Restore an old value. |
java.lang.Object |
setValue(java.lang.Object newValue)
|
java.lang.Object |
setWithSave(java.lang.Object newValue,
CallContext ctx)
Set a value, but return cookie so old value can be restored. |
java.lang.String |
toString()
|
void |
undefine()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNBOUND
Constructor Detail |
---|
public Location()
Method Detail |
---|
public Symbol getKeySymbol()
public java.lang.Object getKeyProperty()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.Object get(java.lang.Object defaultValue)
public final java.lang.Object get()
UnboundLocationException
- the location does not have a value.public abstract void set(java.lang.Object value)
public void undefine()
public java.lang.Object setWithSave(java.lang.Object newValue, CallContext ctx)
public void setRestore(java.lang.Object oldValue, CallContext ctx)
oldValue
- the return value from a prior setWithSave.public boolean isBound()
public boolean isConstant()
public Location getBase()
public final java.lang.Object getValue()
public final java.lang.Object setValue(java.lang.Object newValue)
public boolean entered()
public void print(java.io.PrintWriter ps)
public static Location make(java.lang.Object init, java.lang.String name)
public static IndirectableLocation make(java.lang.String name)
public static IndirectableLocation make(Symbol name)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |