Class JFunctorImpl

    • Constructor Detail

      • JFunctorImpl

        protected JFunctorImpl​(FunctorType type)
    • Method Detail

      • isExecuted

        public boolean isExecuted()
      • clearState

        public void clearState()
      • reset

        public void reset()
        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 clearState().
      • checkArgs

        protected void checkArgs()
        This will check that there are args (assumes that the functor requires arguments and that each argument in turn is a functor. This is used in various functors.
      • checkArgs

        protected void checkArgs​(boolean allowEmptyList)
      • getListResult

        public List getListResult()
        This will always return a list. If the result is not a list, it will be enclosed in an list.
        Returns:
      • getBooleanResult

        public boolean getBooleanResult()
      • getStringResult

        public String getStringResult()
      • getIntResult

        public int getIntResult()
      • addArg

        public void addArg​(Boolean x)
      • toJSON

        public net.sf.json.JSONObject toJSON()
        Specified by:
        toJSON in interface JSONFunctor