Package com.cloudbees.groovy.cps.impl
Class ClosureBlock
java.lang.Object
com.cloudbees.groovy.cps.impl.ClosureBlock
- All Implemented Interfaces:
Block,Serializable
Closure instantiation: { ... }
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.cloudbees.groovy.cps.Block
Block.Noop -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionClosureBlock(SourceLocation loc, List<Class> parameterTypes, List<String> parameters, Block body, Class<? extends CpsClosure> closureType) -
Method Summary
Modifier and TypeMethodDescriptioneval(Env e, Continuation k) Executes this expression, then pass the result to the given continuation when it's available.
-
Constructor Details
-
ClosureBlock
public ClosureBlock(SourceLocation loc, List<Class> parameterTypes, List<String> parameters, Block body, Class<? extends CpsClosure> closureType)
-
-
Method Details
-
eval
Description copied from interface:BlockExecutes this expression, then pass the result to the given continuation when it's available.To be more precise, this method does not evaluate the expression by itself synchronously. Instead, the evaluation is done by the caller by repeatedly step executing the resulting
Nextobject.
-