|
J avolution v5.5 (J2SE 1.6+) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavolution.context.AllocatorContext.Reference<T>
public static class AllocatorContext.Reference<T>
This class represents a reference
allocated from the current AllocatorContext
.
The reachability level of this reference is the scope of the
AllocatorContext
in which it has been
created
.
Constructor Summary | |
---|---|
AllocatorContext.Reference()
Default constructor. |
Method Summary | ||
---|---|---|
T |
get()
Returns the value this reference referes to. |
|
static
|
newInstance()
Returns a new stack reference instance allocated on the current stack when executing in a StackContext . |
|
void |
set(T value)
Sets the value this reference referes to. |
|
java.lang.String |
toString()
Returns the string representation of the current value of this reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AllocatorContext.Reference()
Method Detail |
---|
public static <T> AllocatorContext.Reference<T> newInstance()
StackContext
.
public java.lang.String toString()
toString
in class java.lang.Object
String.valueOf(this.get())
public final T get()
Reference
get
in interface Reference<T>
null
if not set.public final void set(T value)
Reference
set
in interface Reference<T>
value
- the reference value.
|
J avolution v5.5 (J2SE 1.6+) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |