|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.recur.PendingContinuation<R>
edu.rice.cs.plt.recur.BinaryArgContinuation<T1,T2,R>
public abstract class BinaryArgContinuation<T1,T2,R>
A continuation for results that depend on a two recursive invocations, followed by some
additional computation. Instances must implement arg1(), which wraps the first recursive
invocation, arg2(), which wraps the second, and apply(T1, T2), which performs the remaining
computation.
| Constructor Summary | |
|---|---|
BinaryArgContinuation()
|
|
| Method Summary | |
|---|---|
protected abstract Continuation<? extends R> |
apply(T1 arg1,
T2 arg2)
Given the results of evaluating arg1() and arg2(), produce a continuation for
the ultimate result. |
protected abstract Continuation<? extends T1> |
arg1()
Produce a continuation computing the first result of a recursive invocation. |
protected abstract Continuation<? extends T2> |
arg2()
Produce a continuation computing the second result of a recursive invocation. |
Continuation<R> |
step()
Create a ComposedContinuation in terms of the result of arg1() and a lambda
that computes arg2() and ultimately invokes apply() with the results. |
| Methods inherited from class edu.rice.cs.plt.recur.PendingContinuation |
|---|
compose, isResolved, value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryArgContinuation()
| Method Detail |
|---|
protected abstract Continuation<? extends T1> arg1()
protected abstract Continuation<? extends T2> arg2()
protected abstract Continuation<? extends R> apply(T1 arg1,
T2 arg2)
arg1() and arg2(), produce a continuation for
the ultimate result.
public Continuation<R> step()
ComposedContinuation in terms of the result of arg1() and a lambda
that computes arg2() and ultimately invokes apply() with the results.
step in interface Continuation<R>step in class PendingContinuation<R>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||