Class ExpressionInputImpl<T>

    • Constructor Detail

      • ExpressionInputImpl

        public ExpressionInputImpl​(java.lang.String exprStr,
                                   T initial,
                                   de.odysseus.el.util.SimpleContext ctx)
    • Method Detail

      • call

        public final T call()
                     throws javax.el.PropertyNotFoundException,
                            javax.el.ELException
        Description copied from interface: ExpressionInput
        Perform the expression evaluation
        Specified by:
        call in interface java.util.concurrent.Callable<T>
        Specified by:
        call in interface ExpressionInput<T>
        Returns:
        the expression evaluation result
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • last

        public final T last()
        Specified by:
        last in interface ExpressionInput<T>
        Returns:
        the result of the last expression evaluation
      • get

        public T get()
              throws javax.el.PropertyNotFoundException,
                     javax.el.ELException
        Description copied from interface: ExpressionInput
        Get a value. A user should invoke call() method by itself to evaluate the expression if the given expression input is not synchronous. The initial value only would be returned otherwise.
        Specified by:
        get in interface ExpressionInput<T>
        Specified by:
        get in interface Input<T>
        Specified by:
        get in interface java.util.function.Supplier<T>
        Returns:
        next item or null if no items available more
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • get

        public int get​(java.util.List<T> buffer,
                       int limit)
                throws javax.el.PropertyNotFoundException,
                       javax.el.ELException
        Description copied from interface: ExpressionInput
        Bulk values get. A user should invoke call() method by itself to evaluate the expression if the given expression input is not synchronous. The initial value only would be returned otherwise.
        Specified by:
        get in interface ExpressionInput<T>
        Specified by:
        get in interface Input<T>
        Parameters:
        buffer - buffer for the values
        limit - max count of the values to put into the buffer
        Returns:
        count of the items have been get and put into the buffer actually
        Throws:
        javax.el.PropertyNotFoundException
        javax.el.ELException
      • skip

        public long skip​(long count)
        Description copied from interface: ExpressionInput
        Skip some items.
        Specified by:
        skip in interface ExpressionInput<T>
        Specified by:
        skip in interface Input<T>
        Parameters:
        count - count of items should be skipped from the input stream
      • expr

        public final java.lang.String expr()
        Specified by:
        expr in interface ExpressionInput<T>
        Returns:
        the expression string
      • toString

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

        public final void close()
        Specified by:
        close in interface java.lang.AutoCloseable