com.caucho.jstl.rt
Class CoreForTokensTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.jstl.core.LoopTagSupport
com.caucho.jstl.rt.CoreForTokensTag
- All Implemented Interfaces:
- java.io.Serializable, LoopTag, IterationTag, JspTag, Tag, TryCatchFinally
public class CoreForTokensTag
- extends LoopTagSupport
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
_delims
|
protected java.lang.String |
_items
|
protected java.util.Iterator |
_iterator
|
Method Summary |
protected ValueExpression |
createIndexedExpression(int index)
|
protected java.lang.String |
getDelims()
|
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 |
setDelims(java.lang.String delims)
Sets the delimiters expression. |
void |
setEnd(int end)
Sets the ending value |
void |
setItems(java.lang.String items)
Sets the collection expression. |
void |
setStep(int step)
Sets the step value |
Methods inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport |
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_items
protected java.lang.String _items
_delims
protected java.lang.String _delims
_iterator
protected java.util.Iterator _iterator
CoreForTokensTag
public CoreForTokensTag()
setItems
public void setItems(java.lang.String items)
- Sets the collection expression.
setDelims
public void setDelims(java.lang.String delims)
- Sets the delimiters expression.
getDelims
protected java.lang.String getDelims()
- Overrides:
getDelims
in class LoopTagSupport
createIndexedExpression
protected ValueExpression createIndexedExpression(int index)
throws JspTagException
- Throws:
JspTagException
setBegin
public void setBegin(int begin)
- Sets the beginning value
setEnd
public void setEnd(int end)
- Sets the ending value
setStep
public void setStep(int step)
- Sets the step value
prepare
public void prepare()
throws JspTagException
- Prepares the iterator.
- Specified by:
prepare
in class LoopTagSupport
- Throws:
JspTagException
hasNext
public boolean hasNext()
- Returns true if there are more items.
- Specified by:
hasNext
in class LoopTagSupport
next
public java.lang.Object next()
- Returns the next item
- Specified by:
next
in class LoopTagSupport