public class CoreForEachTag extends LoopTagSupport
Modifier and Type | Class and Description |
---|---|
static class |
CoreForEachTag.ArrayIterator |
static class |
CoreForEachTag.RangeIterator |
static class |
CoreForEachTag.StringIterator |
Modifier and Type | Field and Description |
---|---|
protected int |
_begin |
protected int |
_end |
protected boolean |
_hasItems |
protected java.lang.Object |
_items |
protected java.util.Iterator |
_iterator |
begin, beginSpecified, deferredExpression, end, endSpecified, itemId, statusId, step, stepSpecified
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
CoreForEachTag() |
Modifier and Type | Method and Description |
---|---|
protected ValueExpression |
createIndexedExpression(int index) |
protected java.lang.String |
getDelims() |
static ValueExpression |
getExpr(ValueExpression expr,
java.lang.Integer i,
java.lang.Object items,
java.lang.String delims) |
static java.util.Iterator |
getIterator(java.lang.Object items) |
boolean |
hasNext()
Returns true if there are more items.
|
java.lang.Object |
next()
Returns the next item
|
void |
prepare()
Prepares the iterator.
|
void |
setBegin(int begin)
Sets the beginning value
|
void |
setEnd(int end)
Sets the ending value
|
void |
setItems(java.lang.Object items)
Sets the collection expression.
|
void |
setStep(int step)
Sets the step value
|
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
protected int _begin
protected int _end
protected java.lang.Object _items
protected boolean _hasItems
protected java.util.Iterator _iterator
public void setItems(java.lang.Object items)
public void setBegin(int begin)
public void setEnd(int end)
public void setStep(int step)
public void prepare() throws JspTagException
prepare
in class LoopTagSupport
JspTagException
public boolean hasNext()
hasNext
in class LoopTagSupport
public java.lang.Object next()
next
in class LoopTagSupport
public static java.util.Iterator getIterator(java.lang.Object items) throws JspTagException
JspTagException
protected ValueExpression createIndexedExpression(int index) throws JspTagException
JspTagException
protected java.lang.String getDelims()
getDelims
in class LoopTagSupport
public static ValueExpression getExpr(ValueExpression expr, java.lang.Integer i, java.lang.Object items, java.lang.String delims) throws JspTagException
JspTagException