|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.mapping.Location gnu.mapping.ThreadLocation
public class ThreadLocation
A Location that forwards to a thread-specific Location.
Field Summary | |
---|---|
static java.lang.String |
ANONYMOUS
Magic property value used for the "anonymous" ThreadLocations. |
Fields inherited from class gnu.mapping.Location |
---|
UNBOUND |
Constructor Summary | |
---|---|
ThreadLocation()
A new anonymous fluid location. |
|
ThreadLocation(java.lang.String name)
A new anonymous fluid location but used a given name for printing. |
|
ThreadLocation(Symbol name,
java.lang.Object property,
Location global)
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Object defaultValue)
|
static ThreadLocation |
getInstance(Symbol name,
java.lang.Object property)
For a given (Symbol. |
java.lang.Object |
getKeyProperty()
|
Symbol |
getKeySymbol()
|
Location |
getLocation()
Get the thread-specific Location for this Location. |
static ThreadLocation |
makePrivate(java.lang.String name)
Create a fresh ThreadLocation, independent of other ThreaDLocations. |
void |
set(java.lang.Object value)
|
void |
setGlobal(java.lang.Object value)
Set the default/global value. |
void |
setRestore(java.lang.Object oldValue,
CallContext ctx)
Restore an old value. |
java.lang.Object |
setWithSave(java.lang.Object newValue,
CallContext ctx)
Set a value, but return cookie so old value can be restored. |
Methods inherited from class gnu.mapping.Location |
---|
entered, get, getBase, getValue, isBound, isConstant, make, make, make, print, setValue, toString, 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 ANONYMOUS
Constructor Detail |
---|
public ThreadLocation()
public ThreadLocation(java.lang.String name)
public ThreadLocation(Symbol name, java.lang.Object property, Location global)
Method Detail |
---|
public static ThreadLocation makePrivate(java.lang.String name)
name
- used for printing, but not identification.public void setGlobal(java.lang.Object value)
public Location getLocation()
public java.lang.Object get(java.lang.Object defaultValue)
get
in class Location
public void set(java.lang.Object value)
set
in class Location
public java.lang.Object setWithSave(java.lang.Object newValue, CallContext ctx)
Location
setWithSave
in class Location
public void setRestore(java.lang.Object oldValue, CallContext ctx)
Location
setRestore
in class Location
oldValue
- the return value from a prior setWithSave.public Symbol getKeySymbol()
getKeySymbol
in class Location
public java.lang.Object getKeyProperty()
getKeyProperty
in class Location
public static ThreadLocation getInstance(Symbol name, java.lang.Object property)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |