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 Locationpublic java.lang.Object getKeyProperty()
getKeyProperty in class Locationpublic boolean isConstant()
isConstant in class Locationpublic 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)
LocationsetWithSave in class Locationpublic void setRestore(java.lang.Object oldValue)
LocationsetRestore in class LocationoldValue - the return value from a prior setWithSave.