Package com.cloudbees.groovy.cps.impl
Class ExcrementOperatorBlock
java.lang.Object
com.cloudbees.groovy.cps.impl.CallSiteBlockSupport
com.cloudbees.groovy.cps.impl.ExcrementOperatorBlock
- All Implemented Interfaces:
Block,CallSiteBlock,Serializable
"++x", "--x", "x++", or "x--" operator.
This class is so named by Jesse Glick. When asked if my dictionary look up on the word "excrement" is accurate,
he said: "given the number of stupid bugs caused by misuse of this syntax, yes!"
So there we go.
- 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
ConstructorsConstructorDescriptionExcrementOperatorBlock(SourceLocation loc, Collection<CallSiteTag> tags, String operatorMethod, boolean prefix, LValueBlock body) -
Method Summary
Modifier and TypeMethodDescriptioneval(Env e, Continuation k) Executes this expression, then pass the result to the given continuation when it's available.Methods inherited from class com.cloudbees.groovy.cps.impl.CallSiteBlockSupport
getTags
-
Constructor Details
-
ExcrementOperatorBlock
public ExcrementOperatorBlock(SourceLocation loc, Collection<CallSiteTag> tags, String operatorMethod, boolean prefix, LValueBlock body)
-
-
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.
-