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, stepSpecifiedid, pageContextEVAL_BODY_AGAINEVAL_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, validateStepdoEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValueprotected 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 LoopTagSupportJspTagExceptionpublic boolean hasNext()
hasNext in class LoopTagSupportpublic java.lang.Object next()
next in class LoopTagSupportpublic static java.util.Iterator getIterator(java.lang.Object items)
throws JspTagException
JspTagExceptionprotected ValueExpression createIndexedExpression(int index) throws JspTagException
JspTagExceptionprotected java.lang.String getDelims()
getDelims in class LoopTagSupportpublic static ValueExpression getExpr(ValueExpression expr, java.lang.Integer i, java.lang.Object items, java.lang.String delims) throws JspTagException
JspTagException