|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.recur.ValueContinuation<T>
public class ValueContinuation<T>
A continuation that is resolved at creation time.
| Constructor Summary | |
|---|---|
ValueContinuation(T val)
Wrap the given value as a continuation. |
|
| Method Summary | ||
|---|---|---|
|
compose(Lambda<? super T,? extends Continuation<? extends R>> c)
Create a ComposedContinuation in terms of this object and c. |
|
boolean |
isResolved()
Always true. |
|
static
|
make(T val)
Call the constructor (allows T to be inferred). |
|
Continuation<T> |
step()
Throw an IllegalStateException, because this continuation is already resolved. |
|
T |
value()
Return the wrapped value. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueContinuation(T val)
| Method Detail |
|---|
public T value()
value in interface Thunk<T>value in interface Continuation<T>public boolean isResolved()
true.
isResolved in interface ResolvingThunk<T>isResolved in interface Continuation<T>public Continuation<T> step()
IllegalStateException, because this continuation is already resolved.
step in interface Continuation<T>public <R> Continuation<R> compose(Lambda<? super T,? extends Continuation<? extends R>> c)
ComposedContinuation in terms of this object and c.
compose in interface Continuation<T>public static <T> ValueContinuation<T> make(T val)
T to be inferred).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||