public abstract class ForEachSupport
extends javax.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 javax.servlet.jsp.jstl.core.LoopTagSupport class instead.
LoopTagSupport,
Serialized Form| Modifier 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 java.lang.Object |
rawItems |
| Constructor and Description |
|---|
ForEachSupport() |
doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getDelims, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStepdoEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected ForEachSupport.ForEachIterator items
protected java.lang.Object rawItems
protected boolean hasNext()
throws javax.servlet.jsp.JspTagException
hasNext in class javax.servlet.jsp.jstl.core.LoopTagSupportjavax.servlet.jsp.JspTagExceptionprotected java.lang.Object next()
throws javax.servlet.jsp.JspTagException
next in class javax.servlet.jsp.jstl.core.LoopTagSupportjavax.servlet.jsp.JspTagExceptionprotected void prepare()
throws javax.servlet.jsp.JspTagException
prepare in class javax.servlet.jsp.jstl.core.LoopTagSupportjavax.servlet.jsp.JspTagExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.jstl.core.LoopTagSupportprotected ForEachSupport.ForEachIterator supportedTypeForEachIterator(java.lang.Object o) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected ForEachSupport.ForEachIterator toForEachIterator(java.lang.Object o) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected ForEachSupport.ForEachIterator toForEachIterator(java.lang.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(java.util.Collection c)
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Iterator i)
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Enumeration e)
protected ForEachSupport.ForEachIterator toForEachIterator(java.util.Map m)
protected ForEachSupport.ForEachIterator toForEachIterator(java.lang.String s)
Copyright (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.