Class jThen

    • Constructor Detail

      • jThen

        public jThen()
    • Method Detail

      • execute

        public Object execute()
        There is no actual result from this functor. What happens is that each element in its argument list is executed.
        Returns:
      • reset

        public void reset()
        Description copied from class: JFunctorImpl
        This resets the entire state of the functor including erasing the argument list. If you need to clear the executed state and re-run everything, consider invoking JFunctorImpl.clearState().
        Overrides:
        reset in class JFunctorImpl
      • getFunctorMap

        public FunctorMap getFunctorMap()
        A map of every functor that is associated at the top level with this block. Note that the value is list of functors in case any of them are repeated (e.g. the set functor for claims). This allows you to look up specific functors that have been executed directly. You do this by checking an instance of the functor or by checking the value of the type directly on (FunctorTypeImpl or one of its sublcasses , e.g. to check if myFunctor has been executed as part of the conditional issue
             if(getFunctorMap().containsKey(myFunctor)){...}
         
        or to see id the functor jExists has been executed, go to the enumeration of types
             if(getFunctorMap().containsKey(FunctorTypeImpl.EXISTS.getvalue())){...}
         
        Returns: