|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.mapping.Location
gnu.mapping.IndirectableLocation
gnu.mapping.NamedLocation
gnu.mapping.ThreadLocation
public class ThreadLocation
A Location that forwards to a thread-specific Location.
| Nested Class Summary | |
|---|---|
class |
ThreadLocation.InheritingLocation
|
| Field Summary | |
|---|---|
static java.lang.String |
ANONYMOUS
Magic property value used for the "anonymous" ThreadLocations. |
| Fields inherited from class gnu.mapping.IndirectableLocation |
|---|
base, DIRECT_ON_SET, INDIRECT_FLUIDS, value |
| Fields inherited from class gnu.mapping.Location |
|---|
UNBOUND |
| Fields inherited from interface gnu.mapping.EnvironmentKey |
|---|
FUNCTION |
| 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,
SharedLocation global)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object defaultValue)
|
static ThreadLocation |
getInstance(Symbol name,
java.lang.Object property)
For a given (Symbol. |
NamedLocation |
getLocation()
Get the thread-specific Location for this Location. |
java.lang.String |
getName()
|
java.lang.Object |
getSymbol()
|
static ThreadLocation |
makeAnonymous(java.lang.String name)
Create a fresh ThreadLocation, independent of other ThreadLocations. |
static ThreadLocation |
makeAnonymous(Symbol 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 |
setName(java.lang.String name)
|
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. |
| Methods inherited from class gnu.mapping.NamedLocation |
|---|
entered, equals, getEnvironment, getKey, getKeyProperty, getKeySymbol, hashCode, matches, matches |
| Methods inherited from class gnu.mapping.IndirectableLocation |
|---|
getBase, getBaseForce, isConstant, setAlias, setBase, undefine |
| Methods inherited from class gnu.mapping.Location |
|---|
get, getValue, isBound, make, make, make, print, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map.Entry |
|---|
getValue, setValue |
| 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,
SharedLocation global)
| Method Detail |
|---|
public static ThreadLocation makeAnonymous(java.lang.String name)
name - used for printing, but not identification.public static ThreadLocation makeAnonymous(Symbol name)
name - used for printing, but not identification.public void setGlobal(java.lang.Object value)
public NamedLocation getLocation()
public java.lang.Object get(java.lang.Object defaultValue)
get in class Locationpublic void set(java.lang.Object value)
set in class Locationpublic java.lang.Object setWithSave(java.lang.Object newValue)
Location
setWithSave in class NamedLocationpublic void setRestore(java.lang.Object oldValue)
Location
setRestore in class NamedLocationoldValue - the return value from a prior setWithSave.public java.lang.String getName()
getName in interface Namedpublic java.lang.Object getSymbol()
getSymbol in interface Namedpublic void setName(java.lang.String name)
setName in interface Named
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 | |||||||||