|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jsp.java.JspNode
com.caucho.jsp.java.JspContainerNode
com.caucho.jsp.java.JstlNode
com.caucho.jsp.java.JstlCoreForEach
public class JstlCoreForEach
Special generator for a JSTL c:forEach tag.
| Field Summary |
|---|
| Fields inherited from class com.caucho.jsp.java.JstlNode |
|---|
JSTL_CORE_NS, JSTL_FMT_NS, JSTL_XML_NS |
| Fields inherited from class com.caucho.jsp.java.JspContainerNode |
|---|
_attributeNames, _attributeValues, _children, _hasJspAttribute |
| Fields inherited from class com.caucho.jsp.java.JspNode |
|---|
_endAttributeLine, _endLine, _filename, _gen, _name, _ns, _parent, _parseState, _sourcePath, _startLine |
| Constructor Summary | |
|---|---|
JstlCoreForEach()
|
|
| Method Summary | |
|---|---|
void |
addAttribute(QName name,
JspAttribute value)
Adds an attribute. |
void |
addAttribute(QName name,
java.lang.String value)
Adds an attribute. |
void |
generate(JspJavaWriter out)
Generates the code for the c:forEach tag. |
void |
generateCollectionForEach(JspJavaWriter out)
Generates the code for the c:forEach tag. |
void |
generateIntegerForEach(JspJavaWriter out)
Generates the code for the c:forEach tag. |
void |
generatePrologue(JspJavaWriter out)
Generates the prologue for the c:forEach tag. |
void |
generateTagState(JspJavaWriter out)
Generates code before the actual JSP. |
java.lang.String |
getCustomTagName()
Returns the tag name for the current tag. |
TagInstance |
getTag()
Returns the TagInstance of the enclosing parent. |
boolean |
hasCustomTag()
Set true if the node contains a child tag. |
boolean |
hasScripting()
Returns true if the tag has scripting values. |
boolean |
isInteger()
Returns true for an integer forEach. |
boolean |
isSimpleTag()
Returns true for a simple tag. |
void |
printXml(WriteStream os)
Generates the XML text representation for the tag validation. |
| Methods inherited from class com.caucho.jsp.java.JstlNode |
|---|
generateSetNotNull, generateSetOrRemove, isJstl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JstlCoreForEach()
| Method Detail |
|---|
public void addAttribute(QName name,
java.lang.String value)
throws JspParseException
addAttribute in class JstlNodename - the name of the attribute.value - the value of the attribute.
JspParseException
public void addAttribute(QName name,
JspAttribute value)
throws JspParseException
addAttribute in class JspContainerNodename - the name of the attribute.value - the value of the attribute.
JspParseExceptionpublic boolean hasScripting()
hasScripting in class JspContainerNodepublic boolean isInteger()
public TagInstance getTag()
JspNode
getTag in class JspNodepublic java.lang.String getCustomTagName()
getCustomTagName in class JspNodepublic boolean isSimpleTag()
isSimpleTag in class JspNode
public void printXml(WriteStream os)
throws java.io.IOException
printXml in class JspNodeos - write stream to the generated XML.
java.io.IOException
public void generatePrologue(JspJavaWriter out)
throws java.lang.Exception
generatePrologue in class JspNodejava.lang.Exception
public void generate(JspJavaWriter out)
throws java.lang.Exception
generate in class JspNodeout - the output writer for the generated java.
java.lang.Exception
public void generateIntegerForEach(JspJavaWriter out)
throws java.lang.Exception
java.lang.Exception
public void generateCollectionForEach(JspJavaWriter out)
throws java.lang.Exception
java.lang.Exceptionpublic boolean hasCustomTag()
JspContainerNode
hasCustomTag in class JspContainerNode
public void generateTagState(JspJavaWriter out)
throws java.lang.Exception
generateTagState in class JspNodejava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||