| Package | Description |
|---|---|
| com.cloudbees.groovy.cps | |
| com.cloudbees.groovy.cps.impl |
Even though classes in this package is public, they should not be referenced from outside this library.
|
| Modifier and Type | Method and Description |
|---|---|
Next |
Block.eval(Env e,
Continuation k)
Executes this expression, then pass the result to the given continuation when it's available.
|
Next |
Block.Noop.eval(Env e,
Continuation k) |
Next |
LValueBlock.eval(Env e,
Continuation k)
Evaluates to the value.
|
protected abstract Next |
LValueBlock.evalLValue(Env e,
Continuation k)
Evaluate the block as
LValue and pass it to Continuation when done. |
Next |
LValue.get(Continuation k)
Computes the value, and passes it to the given continuation when done.
|
static Next |
Next.go0(Outcome v,
Continuable c)
Crestes a
Next object that
causes the interpreter loop to keep evaluating the continuation represented by Continuable
by passing the outcome (or throwing it). |
Next |
ConcatenatedContinuation.receive(Object o) |
Next |
Next.receive(Object _)
As a
Continuation, just ignore the argument. |
Next |
Continuation.receive(Object o) |
Next |
Continuation.Halt.receive(Object o) |
Next |
Outcome.resumeFrom(Continuable c) |
Next |
Outcome.resumeFrom(Env e,
Continuation k) |
Next |
Next.run()
Resumes the execution of this program state, until it yields a value or finishes computation.
|
Next |
LValue.set(Object v,
Continuation k)
Sets the given value to this variable, and passes
null to the given continuation when done. |
Next |
Next.step()
Executes one step
|
static Next |
Next.terminate(Object v)
Creates a
Next object that terminates the computation and either returns a value. |
static Next |
Next.terminate0(Outcome v)
Creates a
Next object that terminates the computation and either returns a value or throw an exception. |
static Next |
Next.unhandledException(Throwable t)
Creates a
Next object that terminates the computation by throwing an exception. |
static Next |
Next.yield(Object v,
Env e,
Continuation k)
Creates a
Next object that
causes the interpreter loop to exit with the specified value, then optionally allow the interpreter
to resume with the specified Continuation. |
static Next |
Next.yield0(Outcome v,
Continuable c)
Creates a
Next object that
causes the interpreter loop to exit with the specified value, then optionally allow the interpreter
to resume to the continuation represented by Continuable. |
| Constructor and Description |
|---|
Continuable(Next n) |
| Modifier and Type | Method and Description |
|---|---|
Next |
JavaThisBlock.eval(Env e,
Continuation k) |
Next |
BlockScopedBlock.eval(Env _e,
Continuation k) |
Next |
MethodPointerBlock.eval(Env e,
Continuation k) |
Next |
ForLoopBlock.eval(Env e,
Continuation k) |
Next |
CollectionLiteralBlock.eval(Env e,
Continuation k) |
Next |
SuspendBlock.eval(Env e,
Continuation k) |
Next |
ForInLoopBlock.eval(Env e,
Continuation k) |
Next |
AssignmentBlock.eval(Env e,
Continuation k) |
Next |
SuperBlock.eval(Env e,
Continuation k) |
Next |
TryCatchBlock.eval(Env e,
Continuation k) |
Next |
NotBlock.eval(Env e,
Continuation k) |
Next |
DoWhileBlock.eval(Env e,
Continuation k) |
Next |
ConstantBlock.eval(Env e,
Continuation k) |
Next |
ContinueBlock.eval(Env e,
Continuation k) |
Next |
VariableDeclBlock.eval(Env e,
Continuation k) |
Next |
SequenceBlock.eval(Env e,
Continuation k) |
Next |
LogicalOpBlock.eval(Env e,
Continuation k) |
Next |
ExcrementOperatorBlock.eval(Env e,
Continuation k) |
Next |
IfBlock.eval(Env e,
Continuation k) |
Next |
ElvisBlock.eval(Env e,
Continuation k) |
Next |
SwitchBlock.eval(Env e,
Continuation k) |
Next |
NewArrayBlock.eval(Env e,
Continuation k) |
Next |
BreakBlock.eval(Env e,
Continuation k) |
Next |
WhileBlock.eval(Env e,
Continuation k) |
Next |
ThrowBlock.eval(Env e,
Continuation _) |
Next |
YieldBlock.eval(Env e,
Continuation k) |
Next |
ClosureBlock.eval(Env e,
Continuation k) |
Next |
ReturnBlock.eval(Env e,
Continuation k) |
Next |
AssertBlock.eval(Env e,
Continuation k) |
Next |
FunctionCallBlock.eval(Env e,
Continuation k) |
Next |
LocalVariableBlock.evalLValue(Env e,
Continuation k) |
Next |
StaticFieldBlock.evalLValue(Env e,
Continuation k) |
Next |
CpsCallableInvocation.invoke(Env caller,
SourceLocation loc,
Continuation k) |
Next |
CpsFunction.invoke(Env caller,
SourceLocation loc,
Object receiver,
List<?> args,
Continuation k) |
Copyright © 2011–2019. All rights reserved.