Package javax.servlet.jsp.jstl.core
Class IteratedExpression
- java.lang.Object
-
- javax.servlet.jsp.jstl.core.IteratedExpression
-
public final class IteratedExpression extends java.lang.ObjectHelper class for accessing members of a deferred expression result by index.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classIteratedExpression.TypesEnum
-
Field Summary
Fields Modifier and Type Field Description private intcurrentIndexprivate java.util.IteratorcurrentListObjectprotected java.lang.Stringdelimsprotected javax.el.ValueExpressionorigprivate java.lang.ObjectoriginalListObjectprivate IteratedExpression.TypesEnumtype
-
Constructor Summary
Constructors Constructor Description IteratedExpression(javax.el.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.ObjectgetItem(javax.el.ELContext context, int i)Iterates the original expression and returns the value at the index.javax.el.ValueExpressiongetValueExpression()Returns the original expression.private java.util.IteratorreturnNewIterator(java.lang.Object o, IteratedExpression.TypesEnum type)
-
-
-
Field Detail
-
orig
protected final javax.el.ValueExpression orig
-
delims
protected final java.lang.String delims
-
originalListObject
private java.lang.Object originalListObject
-
currentListObject
private java.util.Iterator currentListObject
-
currentIndex
private int currentIndex
-
type
private IteratedExpression.TypesEnum type
-
-
Constructor Detail
-
IteratedExpression
public IteratedExpression(javax.el.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 accesseddelims- delimiters to be used to split a String result
-
-
Method Detail
-
getItem
public java.lang.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
-
returnNewIterator
private java.util.Iterator returnNewIterator(java.lang.Object o, IteratedExpression.TypesEnum type)
-
-