Class IteratedExpression


  • public final class IteratedExpression
    extends java.lang.Object
    Helper class for accessing members of a deferred expression result by index.
    • Constructor Summary

      Constructors 
      Constructor Description
      IteratedExpression​(ValueExpression orig, java.lang.String delims)
      Constructor specifying the expression to access.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getItem​(ELContext context, int i)
      Iterates the original expression and returns the value at the index.
      ValueExpression getValueExpression()
      Returns the original expression.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IteratedExpression

        public IteratedExpression​(ValueExpression orig,
                                  java.lang.String delims)
        Constructor specifying the expression to access. If the expression evaluates to a String, then it will be split using the specified delimiters.
        Parameters:
        orig - the original expression to be accessed
        delims - delimiters to be used to split a String result
    • Method Detail

      • getItem

        public java.lang.Object getItem​(ELContext context,
                                        int i)
        Iterates the original expression and returns the value at the index.
        Parameters:
        context - against which the expression should be evaluated
        i - the index of the value to return
        Returns:
        the value at the index
      • getValueExpression

        public ValueExpression getValueExpression()
        Returns the original expression.
        Returns:
        the original expression