public class ConstrainedLocation extends Location
Modifier and Type | Field and Description |
---|---|
protected Location |
base |
protected Procedure |
converter |
Constructor and Description |
---|
ConstrainedLocation() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
coerce(java.lang.Object newValue) |
java.lang.Object |
get(java.lang.Object defaultValue) |
java.lang.Object |
getKeyProperty() |
Symbol |
getKeySymbol() |
boolean |
isBound() |
boolean |
isConstant() |
static ConstrainedLocation |
make(Location base,
Procedure converter) |
void |
set(java.lang.Object newValue) |
void |
setRestore(java.lang.Object oldValue)
Restore an old value.
|
java.lang.Object |
setWithSave(java.lang.Object newValue)
Set a value, but return cookie so old value can be restored.
|
public static ConstrainedLocation make(Location base, Procedure converter)
public Symbol getKeySymbol()
getKeySymbol
in class Location
public java.lang.Object getKeyProperty()
getKeyProperty
in class Location
public boolean isConstant()
isConstant
in class Location
public final java.lang.Object get(java.lang.Object defaultValue)
protected java.lang.Object coerce(java.lang.Object newValue)
public java.lang.Object setWithSave(java.lang.Object newValue)
Location
setWithSave
in class Location
public void setRestore(java.lang.Object oldValue)
Location
setRestore
in class Location
oldValue
- the return value from a prior setWithSave.