Class Fn

    • Field Detail

      • fnNode

        protected FnNode fnNode
    • Constructor Detail

      • Fn

        public Fn​(FnNode fnNode)
    • Method Detail

      • condition

        public Condition condition()
        Convert this fn into a condition
      • acceptFnVisitor

        public abstract <T> T acceptFnVisitor​(FnVisitor<T> visitor)
      • getName

        public String getName()
        Returns the name of this function, eg. isSet, parseUrl
        Returns:
        The name
      • getArgv

        public List<Expr> getArgv()
        Returns:
        The arguments to this function
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • expectOneArg

        protected Expr expectOneArg()
      • expectTwoArgs

        protected Pair<Expr,​Expr> expectTwoArgs()
      • expectVariableArgs

        protected List<Expr> expectVariableArgs​(int expectedNumberArgs)