com.caucho.jsp.java
Class JstlNode

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JstlNode
Direct Known Subclasses:
JstlCoreCatch, JstlCoreChoose, JstlCoreForEach, JstlCoreIf, JstlCoreOtherwise, JstlCoreOut, JstlCoreRemove, JstlCoreRtWhen, JstlCoreSet, JstlCoreWhen, JstlFmtBundle, JstlFmtMessage, JstlFmtParam, JstlFmtSetBundle, JstlXmlIf, JstlXmlOut, JstlXmlSet, JstlXmlWhen

public abstract class JstlNode
extends JspContainerNode


Field Summary
protected static java.lang.String JSTL_CORE_NS
           
protected static java.lang.String JSTL_FMT_NS
           
protected static java.lang.String 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
JstlNode()
           
 
Method Summary
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute.
protected  void generateSetNotNull(JspJavaWriter out, java.lang.String var, java.lang.String scope, java.lang.String value)
          Generates the code to set a non-null value.
protected  void generateSetOrRemove(JspJavaWriter out, java.lang.String var, java.lang.String scope, java.lang.String value)
           
 boolean isJstl()
          True if this is a jstl node.
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, addAttributeChild, addChild, addChildEnd, addText, findScriptingNode, generateChildren, generateChildrenEmpty, generateClassEpilogueChildren, generateDeclarationChildren, generatePrologueChildren, generateStatic, generateTagReleaseChildren, generateTagStateChildren, getAttribute, getChildren, getStaticText, hasChildren, hasCustomTag, hasScripting, hasScriptingElement, hasTag, isChildrenStatic, isEmpty, isJsfParentRequired, isSingleExpression, isWhitespace, printXmlChildren
 
Methods inherited from class com.caucho.jsp.java.JspNode
addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, endAttributes, endElement, error, error, error, escapeJavaString, generate, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologue, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, getCustomTagName, getEndAttributeLine, getEndLine, getFilename, getGenerator, getJsfBodyVar, getJsfVar, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getTag, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, invokeFragment, isInFragment, isJsp21, isPre21Taglib, isSimpleTag, isStatic, loadClass, printJspId, printXml, printXmlAttribute, printXmlOpen, printXmlText, setEndAttributeLocation, setEndLocation, setGenerator, setNamespace, setParent, setParseState, setQName, setStartLocation, toELObject, toString, xmlAttrText, xmlText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JSTL_CORE_NS

protected static final java.lang.String JSTL_CORE_NS
See Also:
Constant Field Values

JSTL_FMT_NS

protected static final java.lang.String JSTL_FMT_NS
See Also:
Constant Field Values

JSTL_XML_NS

protected static final java.lang.String JSTL_XML_NS
See Also:
Constant Field Values
Constructor Detail

JstlNode

public JstlNode()
Method Detail

isJstl

public boolean isJstl()
True if this is a jstl node.

Overrides:
isJstl in class JspNode

addAttribute

public void addAttribute(QName name,
                         java.lang.String value)
                  throws JspParseException
Adds an attribute.

Overrides:
addAttribute in class JspContainerNode
Parameters:
name - the name of the attribute.
value - the value of the attribute.
Throws:
JspParseException

generateSetNotNull

protected void generateSetNotNull(JspJavaWriter out,
                                  java.lang.String var,
                                  java.lang.String scope,
                                  java.lang.String value)
                           throws java.lang.Exception
Generates the code to set a non-null value.

Parameters:
out - the writer to the *.java file
var - the EL name
scope - the scope name
value - the value
Throws:
java.lang.Exception

generateSetOrRemove

protected void generateSetOrRemove(JspJavaWriter out,
                                   java.lang.String var,
                                   java.lang.String scope,
                                   java.lang.String value)
                            throws java.lang.Exception
Throws:
java.lang.Exception