Class Closure

    • Method Detail

      • execute

        public java.lang.Object execute​(CommandSession x,
                                        java.util.List<java.lang.Object> values)
                                 throws java.lang.Exception
        Description copied from interface: Function
        Execute this function and return the result.
        Specified by:
        execute in interface Function
        Parameters:
        x - the session
        values - the arguments
        Returns:
        the result from the execution.
        Throws:
        java.lang.Exception - if anything goes terribly wrong
      • execute

        public java.lang.Object execute​(CommandSession x,
                                        java.util.List<java.lang.Object> values,
                                        java.nio.channels.Channel capturingOutput)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • eval

        public java.lang.Object eval​(Token t)
                              throws java.lang.Exception
        Specified by:
        eval in interface Evaluate
        Throws:
        java.lang.Exception
      • eval

        public java.lang.Object eval​(Token t,
                                     boolean convertNumeric)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • execute

        public java.lang.Object execute​(Parser.Executable executable)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • executeStatement

        public java.lang.Object executeStatement​(Parser.Statement statement)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • expr

        public java.lang.Object expr​(Token expr)
        Specified by:
        expr in interface Evaluate
      • get

        public java.lang.Object get​(java.lang.String name)
        Specified by:
        get in interface Evaluate
      • put

        public java.lang.Object put​(java.lang.String key,
                                    java.lang.Object value)
        Specified by:
        put in interface Evaluate
      • currentDir

        public java.nio.file.Path currentDir()
        Specified by:
        currentDir in interface Evaluate
      • classLoader

        public java.lang.ClassLoader classLoader()
        Specified by:
        classLoader in interface Evaluate
      • isSet

        protected boolean isSet​(java.lang.String name,
                                boolean def)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object