Class ExcrementOperatorBlock

java.lang.Object
com.cloudbees.groovy.cps.impl.CallSiteBlockSupport
com.cloudbees.groovy.cps.impl.ExcrementOperatorBlock
All Implemented Interfaces:
Block, CallSiteBlock, Serializable

public class ExcrementOperatorBlock extends CallSiteBlockSupport
"++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:
  • Constructor Details

  • Method Details

    • eval

      public Next eval(Env e, Continuation k)
      Description copied from interface: Block
      Executes 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 Next object.