public final class IteratedExpression
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
IteratedExpression.TypesEnum |
Modifier and Type | Field and Description |
---|---|
private int |
currentIndex |
private java.util.Iterator |
currentListObject |
protected java.lang.String |
delims |
protected javax.el.ValueExpression |
orig |
private java.lang.Object |
originalListObject |
private IteratedExpression.TypesEnum |
type |
Constructor and Description |
---|
IteratedExpression(javax.el.ValueExpression orig,
java.lang.String delims)
Constructor specifying the expression to access.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
private java.util.Iterator |
returnNewIterator(java.lang.Object o,
IteratedExpression.TypesEnum type) |
protected final javax.el.ValueExpression orig
protected final java.lang.String delims
private java.lang.Object originalListObject
private java.util.Iterator currentListObject
private int currentIndex
private IteratedExpression.TypesEnum type
public IteratedExpression(javax.el.ValueExpression orig, java.lang.String delims)
orig
- the original expression to be accesseddelims
- delimiters to be used to split a String resultpublic java.lang.Object getItem(javax.el.ELContext context, int i)
context
- against which the expression should be evaluatedi
- the index of the value to returnpublic javax.el.ValueExpression getValueExpression()
private java.util.Iterator returnNewIterator(java.lang.Object o, IteratedExpression.TypesEnum type)