Package com.cloudbees.groovy.cps.impl
Class MethodPointerBlock
java.lang.Object
com.cloudbees.groovy.cps.impl.MethodPointerBlock
- All Implemented Interfaces:
Block,CallSiteBlock,Serializable
Method pointer expression:
LHS&.methodName- 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
ConstructorsConstructorDescriptionMethodPointerBlock(SourceLocation loc, Block lhsExp, Block methodNameExp, Collection<CallSiteTag> tags) -
Method Summary
Modifier and TypeMethodDescriptioneval(Env e, Continuation k) Executes this expression, then pass the result to the given continuation when it's available.getTags()Tags associated with this call site.
-
Constructor Details
-
MethodPointerBlock
public MethodPointerBlock(SourceLocation loc, Block lhsExp, Block methodNameExp, Collection<CallSiteTag> tags)
-
-
Method Details
-
getTags
Description copied from interface:CallSiteBlockTags associated with this call site.- Specified by:
getTagsin interfaceCallSiteBlock
-
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.
-