com.caucho.jsp.java
Class JspRoot

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JspRoot

public class JspRoot
extends JspContainerNode

Represents the root node.


Field Summary
 
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
JspRoot()
           
 
Method Summary
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute.
 void addChild(JspNode node)
          Adds a child node.
 void addNamespaceRec(java.lang.String prefix, java.lang.String value)
          Adds a namespace, e.g.
 JspNode addText(java.lang.String text)
          Adds a text node.
 void endAttributes()
          Called after all the attributes from the tag.
 void generate(JspJavaWriter out)
          Generates the code for the tag
 java.lang.String getNamespacePrefix(java.lang.String uri)
          Adds a namespace, e.g.
 boolean isStatic()
          Set true if the node only has static text.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 void setVersion(java.lang.String version)
          Sets the versino.
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, addAttributeChild, addChildEnd, 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, attributeToBoolean, classToString, convertParameterValue, endElement, error, error, error, escapeJavaString, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologue, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, getCustomTagName, getEndAttributeLine, getEndLine, getFilename, getGenerator, getJsfBodyVar, getJsfVar, getNamespaceContext, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getTag, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, invokeFragment, isInFragment, isJsp21, isJstl, isPre21Taglib, isSimpleTag, loadClass, printJspId, 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
 

Constructor Detail

JspRoot

public JspRoot()
Method Detail

setVersion

public void setVersion(java.lang.String version)
Sets the versino.


addAttribute

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

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

addText

public JspNode addText(java.lang.String text)
                throws JspParseException
Adds a text node.

Overrides:
addText in class JspContainerNode
Throws:
JspParseException

endAttributes

public void endAttributes()
                   throws JspParseException
Called after all the attributes from the tag.

Overrides:
endAttributes in class JspNode
Throws:
JspParseException

addChild

public void addChild(JspNode node)
              throws JspParseException
Adds a child node.

Overrides:
addChild in class JspContainerNode
Throws:
JspParseException

addNamespaceRec

public void addNamespaceRec(java.lang.String prefix,
                            java.lang.String value)
Adds a namespace, e.g. from a prefix declaration.

Overrides:
addNamespaceRec in class JspNode

getNamespacePrefix

public java.lang.String getNamespacePrefix(java.lang.String uri)
Adds a namespace, e.g. from a prefix declaration.

Overrides:
getNamespacePrefix in class JspNode

isStatic

public boolean isStatic()
Set true if the node only has static text.

Overrides:
isStatic in class JspNode

printXml

public void printXml(WriteStream os)
              throws java.io.IOException
Generates the XML text representation for the tag validation.

Specified by:
printXml in class JspNode
Parameters:
os - write stream to the generated XML.
Throws:
java.io.IOException

generate

public void generate(JspJavaWriter out)
              throws java.lang.Exception
Generates the code for the tag

Specified by:
generate in class JspNode
Parameters:
out - the output writer for the generated java.
Throws:
java.lang.Exception