Class CpsBooleanClosureWrapper

java.lang.Object
com.cloudbees.groovy.cps.impl.CpsBooleanClosureWrapper
All Implemented Interfaces:
Serializable

public class CpsBooleanClosureWrapper extends Object implements Serializable
A serializable equivalent of BooleanClosureWrapper, where the BooleanReturningMethodInvoker is instantiated when call(Object...) is called to avoid serialization issues with that as well.
See Also:
  • Constructor Details

    • CpsBooleanClosureWrapper

      public CpsBooleanClosureWrapper(groovy.lang.Closure wrapped)
  • Method Details

    • call

      public boolean call(Object... args)
      normal closure call
    • callForMap

      public <K, V> boolean callForMap(Map.Entry<K,V> entry)
      Bridge for a call based on a map entry. If the call is done on a Closure taking one argument, then we give in the Map.Entry, otherwise we will give in the key and value.