javax.servlet.jsp.jstl.core
Class IteratedExpression
java.lang.Object
javax.servlet.jsp.jstl.core.IteratedExpression
public final class IteratedExpression
- extends Object
Helper class for accessing members of a deferred expression result by index.
Constructor Summary |
IteratedExpression(javax.el.ValueExpression orig,
String delims)
Constructor specifying the expression to access. |
Method Summary |
Object |
getItem(javax.el.ELContext context,
int i)
Iterates the original expression and returns the value at the index. |
javax.el.ValueExpression |
getValueExpression()
Returns the original expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
orig
protected final javax.el.ValueExpression orig
delims
protected final String delims
IteratedExpression
public IteratedExpression(javax.el.ValueExpression orig,
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 accesseddelims
- delimiters to be used to split a String result
getItem
public Object getItem(javax.el.ELContext context,
int i)
- Iterates the original expression and returns the value at the index.
- Parameters:
context
- against which the expression should be evaluatedi
- the index of the value to return
- Returns:
- the value at the index
getValueExpression
public javax.el.ValueExpression getValueExpression()
- Returns the original expression.
- Returns:
- the original expression
Copyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.