gnu.mapping
public class ThreadLocation extends Location implements Named
Field Summary | |
---|---|
static String | ANONYMOUS Magic property value used for the "anonymous" ThreadLocations.
|
Constructor Summary | |
---|---|
ThreadLocation() A new anonymous fluid location. | |
ThreadLocation(String name) A new anonymous fluid location but used a given name for printing.
| |
ThreadLocation(Symbol name, Object property, Location global) |
Method Summary | |
---|---|
Object | get(Object defaultValue) |
static ThreadLocation | getInstance(Symbol name, Object property) For a given (Symbol. property)-pair, find or create
a matching ThreadLocation. |
Object | getKeyProperty() |
Symbol | getKeySymbol() |
Location | getLocation() Get the thread-specific Location for this Location. |
String | getName() |
Object | getSymbol() |
static ThreadLocation | makePrivate(String name) Create a fresh ThreadLocation, independent of other ThreaDLocations.
|
static ThreadLocation | makePrivate(Symbol name) |
void | set(Object value) |
void | setGlobal(Object value) Set the default/global value. |
void | setName(String name) |
void | setRestore(Object oldValue, CallContext ctx) |
Object | setWithSave(Object newValue, CallContext ctx) |
Parameters: name used for printing, but not identification.