Class ForTokensSupport

  • All Implemented Interfaces:
    jakarta.servlet.jsp.jstl.core.LoopTag, jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, jakarta.servlet.jsp.tagext.TryCatchFinally, Serializable
    Direct Known Subclasses:
    ForTokensTag, ForTokensTag

    public abstract class ForTokensSupport
    extends jakarta.servlet.jsp.jstl.core.LoopTagSupport

    Support for tag handlers for <forTokens>, the tokenizing iteration tag in JSTL 1.0. This class extends LoopTagSupport and provides ForTokens-specific functionality. The rtexprvalue and expression-evaluating libraries each have handlers that extend this class.

    Author:
    Shawn Bayern
    See Also:
    LoopTagSupport, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String delims  
      protected Object items  
      protected StringTokenizer st  
      • Fields inherited from class jakarta.servlet.jsp.jstl.core.LoopTagSupport

        begin, beginSpecified, deferredExpression, end, endSpecified, itemId, statusId, step, stepSpecified
      • Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String getDelims()  
      protected boolean hasNext()  
      protected Object next()  
      protected void prepare()  
      void release()  
      • Methods inherited from class jakarta.servlet.jsp.jstl.core.LoopTagSupport

        doAfterBody, doCatch, doFinally, doStartTag, getCurrent, getLoopStatus, setVar, setVarStatus, validateBegin, validateEnd, validateStep
      • Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

        doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from interface jakarta.servlet.jsp.tagext.Tag

        doEndTag, getParent, setPageContext, setParent
    • Constructor Detail

      • ForTokensSupport

        public ForTokensSupport()
    • Method Detail

      • prepare

        protected void prepare()
                        throws jakarta.servlet.jsp.JspTagException
        Specified by:
        prepare in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
        Throws:
        jakarta.servlet.jsp.JspTagException
      • hasNext

        protected boolean hasNext()
                           throws jakarta.servlet.jsp.JspTagException
        Specified by:
        hasNext in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
        Throws:
        jakarta.servlet.jsp.JspTagException
      • next

        protected Object next()
                       throws jakarta.servlet.jsp.JspTagException
        Specified by:
        next in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
        Throws:
        jakarta.servlet.jsp.JspTagException
      • getDelims

        protected String getDelims()
        Overrides:
        getDelims in class jakarta.servlet.jsp.jstl.core.LoopTagSupport
      • release

        public void release()
        Specified by:
        release in interface jakarta.servlet.jsp.tagext.Tag
        Overrides:
        release in class jakarta.servlet.jsp.jstl.core.LoopTagSupport