public class CpsCallableInvocation extends Error
The instance captures everything necessary to invoke a function, which is the definition of the function, object that the function is invoked on, and actual arguments to the function. When we invoke CPS-transformed closure or function, this throwable gets thrown.
| Modifier and Type | Field and Description |
|---|---|
List |
arguments |
CpsCallable |
call |
Object |
receiver |
| Constructor and Description |
|---|
CpsCallableInvocation(CpsCallable call,
Object receiver,
Object... arguments) |
| Modifier and Type | Method and Description |
|---|---|
Block |
asBlock()
Creates a
Block that performs this invocation and pass the result to the given Continuation. |
Throwable |
fillInStackTrace() |
Next |
invoke(Env caller,
SourceLocation loc,
Continuation k) |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic final CpsCallable call
public final Object receiver
public final List arguments
public CpsCallableInvocation(CpsCallable call, Object receiver, Object... arguments)
public Next invoke(Env caller, SourceLocation loc, Continuation k)
public Block asBlock()
Block that performs this invocation and pass the result to the given Continuation.public Throwable fillInStackTrace()
fillInStackTrace in class ThrowableCopyright © 2011–2018. All rights reserved.