| 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 | Class and Description |
|---|---|
class |
ConcatenatedContinuation
Combines two
Continuations into one. |
static class |
Continuation.Halt
Singleton implementation that maintains the singleton-ness across serialization
|
class |
Next
Remaining computation to execute.
|
| Modifier and Type | Field and Description |
|---|---|
static Continuation |
Continuation.HALT
Indicates the end of a program.
|
Continuation |
Next.k |
| Modifier and Type | Method and Description |
|---|---|
Continuation |
Env.getBreakAddress(String label)
If we see a break statement, where should we go?
|
Continuation |
Env.getContinueAddress(String label)
If we see a continue statement, where should we go?
|
Continuation |
Env.getExceptionHandler(Class<? extends Throwable> type)
Finds the exception handler that catches a
Throwable instance of this type. |
Continuation |
Env.getReturnAddress()
Where should the return statement return to?
|
| 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.
|
Next |
Outcome.resumeFrom(Env e,
Continuation k) |
Next |
LValue.set(Object v,
Continuation k)
Sets the given value to this variable, and passes
null to the given continuation when done. |
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. |
| Constructor and Description |
|---|
ConcatenatedContinuation(Continuation first,
Continuable then) |
ConcatenatedContinuation(Continuation first,
com.google.common.base.Function<Outcome,Outcome> mapper,
Continuable then) |
Continuable(groovy.lang.Script cpsTransformedScript,
Env env,
Continuation k)
|
Next(Block f,
Env e,
Continuation k) |
Next(Env e,
Continuation k,
Outcome yield) |
| Modifier and Type | Method and Description |
|---|---|
Continuation |
CaseEnv.getBreakAddress(String label) |
Continuation |
ProxyEnv.getBreakAddress(String label) |
Continuation |
TryBlockEnv.getBreakAddress(String label) |
Continuation |
ProxyEnv.getContinueAddress(String label) |
Continuation |
TryBlockEnv.getContinueAddress(String label) |
Continuation |
ProxyEnv.getExceptionHandler(Class<? extends Throwable> type) |
Continuation |
TryBlockEnv.getExceptionHandler(Class<? extends Throwable> type) |
Continuation |
ProxyEnv.getReturnAddress() |
Continuation |
TryBlockEnv.getReturnAddress() |
| Modifier and Type | Method and Description |
|---|---|
void |
TryBlockEnv.addHandler(Class<? extends Throwable> type,
Continuation k)
Handlers can be only added immediately after instantiation.
|
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) |
| Constructor and Description |
|---|
CaseEnv(Env parent,
String label,
Continuation break_) |
FunctionCallEnv(Env caller,
Continuation returnAddress,
SourceLocation loc,
Object _this) |
FunctionCallEnv(Env caller,
Continuation returnAddress,
SourceLocation loc,
Object _this,
int localsCount) |
Copyright © 2011–2019. All rights reserved.