public abstract class ForEachSupport
extends jakarta.servlet.jsp.jstl.core.LoopTagSupport
Support for tag handlers for <forEach>, the core iteration tag in JSTL 1.0. This class extends LoopTagSupport and provides ForEach-specific functionality. The rtexprvalue library and the expression-evaluating library each have handlers that extend this class.
Localized here is the logic for handling the veritable smorgasbord of types supported by <forEach>, including arrays, Collections, and others. To see how the actual iteration is controlled, review the jakarta.servlet.jsp.jstl.core.LoopTagSupport class instead.
LoopTagSupport
,
Serialized FormModifier and Type | Class and Description |
---|---|
protected static interface |
ForEachSupport.ForEachIterator |
protected class |
ForEachSupport.SimpleForEachIterator |
Modifier and Type | Field and Description |
---|---|
protected ForEachSupport.ForEachIterator |
items |
protected Object |
rawItems |
Constructor and Description |
---|
ForEachSupport() |
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getDelims, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected ForEachSupport.ForEachIterator items
protected Object rawItems
protected boolean hasNext() throws jakarta.servlet.jsp.JspTagException
hasNext
in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
jakarta.servlet.jsp.JspTagException
protected Object next() throws jakarta.servlet.jsp.JspTagException
next
in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
jakarta.servlet.jsp.JspTagException
protected void prepare() throws jakarta.servlet.jsp.JspTagException
prepare
in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
jakarta.servlet.jsp.JspTagException
public void release()
release
in interface jakarta.servlet.jsp.tagext.Tag
release
in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
protected ForEachSupport.ForEachIterator supportedTypeForEachIterator(Object o) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
protected ForEachSupport.ForEachIterator toForEachIterator(Object o) throws jakarta.servlet.jsp.JspTagException
jakarta.servlet.jsp.JspTagException
protected ForEachSupport.ForEachIterator toForEachIterator(Object[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(boolean[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(byte[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(char[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(short[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(int[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(long[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(float[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(double[] a)
protected ForEachSupport.ForEachIterator toForEachIterator(Collection c)
protected ForEachSupport.ForEachIterator toForEachIterator(Iterator i)
protected ForEachSupport.ForEachIterator toForEachIterator(Enumeration e)
protected ForEachSupport.ForEachIterator toForEachIterator(Map m)
protected ForEachSupport.ForEachIterator toForEachIterator(String s)
Copyright © 2019,2020 Eclipse Foundation. All rights reserved.