com.caucho.jsp.java
Class JspTop

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JspTop
All Implemented Interfaces:
JspSegmentNode

public class JspTop
extends JspContainerNode
implements JspSegmentNode

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
JspTop()
           
 
Method Summary
 void addChild(JspNode child)
          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 generate(JspJavaWriter out)
          Generates the code for the tag
 int getMaxFragmentIndex()
          Returns the largest fragment index.
 int getMaxStaticFragmentIndex()
          Returns the largest static fragment index.
 java.lang.String getNamespacePrefix(java.lang.String uri)
          Adds a namespace, e.g.
 JspSegmentNode getSegment()
          Returns the containing segment.
 boolean hasNamespace(java.lang.String prefix, java.lang.String uri)
          Returns true if the namespace decl has been printed.
 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 setMaxFragmentIndex(int index)
          Sets the largest fragment index.
 void setMaxStaticFragmentIndex(int index)
          Sets the largest static fragment index.
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, 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, endAttributes, 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, getStartLine, getStaticText, getTag, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, 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

JspTop

public JspTop()
Method Detail

addText

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

Overrides:
addText in class JspContainerNode
Throws:
JspParseException

addChild

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

Overrides:
addChild in class JspContainerNode
Throws:
JspParseException

isStatic

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

Overrides:
isStatic in class JspNode

getSegment

public JspSegmentNode getSegment()
Returns the containing segment.

Overrides:
getSegment in class JspNode

getMaxFragmentIndex

public int getMaxFragmentIndex()
Returns the largest fragment index.


setMaxFragmentIndex

public void setMaxFragmentIndex(int index)
Sets the largest fragment index.


getMaxStaticFragmentIndex

public int getMaxStaticFragmentIndex()
Returns the largest static fragment index.


setMaxStaticFragmentIndex

public void setMaxStaticFragmentIndex(int index)
Sets the largest static fragment index.


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

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

hasNamespace

public boolean hasNamespace(java.lang.String prefix,
                            java.lang.String uri)
Returns true if the namespace decl has been printed.

Overrides:
hasNamespace in class JspNode

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