com.caucho.jsp.java
Class JspBody

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

public class JspBody
extends JspFragmentNode

Represents the body for a SimpleTag


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
JspBody()
           
 
Method Summary
 JspNode addText(java.lang.String text)
          Adds a text node.
 void endAttributes()
          Called after all the attributes from the tag.
 void generatePrologue(JspJavaWriter out)
          Generates the prologue.
 void generatePrologueChildren(JspJavaWriter out)
          Generates the prologue as a child, i.e.
 java.lang.String getCustomTagName()
          Returns the tag name for the current tag.
 TagInstance getTag()
          Returns the TagInstance of the enclosing parent.
 boolean isStatic()
          Returns true if the children are static.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 
Methods inherited from class com.caucho.jsp.java.JspFragmentNode
generate, generateFragmentPrologue, generateValue, getFragmentCode, getFragmentName, isJspFragment, isTrim, isValueFragment, setJspFragment
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, addAttribute, addAttributeChild, addChild, addChildEnd, findScriptingNode, generateChildren, generateChildrenEmpty, generateClassEpilogueChildren, generateDeclarationChildren, 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, endElement, error, error, error, escapeJavaString, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, getEndAttributeLine, getEndLine, getFilename, getGenerator, getJsfBodyVar, getJsfVar, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, 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

JspBody

public JspBody()
Method Detail

addText

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

Overrides:
addText in class JspFragmentNode
Throws:
JspParseException

getCustomTagName

public java.lang.String getCustomTagName()
Returns the tag name for the current tag.

Overrides:
getCustomTagName in class JspFragmentNode

isStatic

public boolean isStatic()
Returns true if the children are static.

Overrides:
isStatic in class JspFragmentNode

getTag

public TagInstance getTag()
Returns the TagInstance of the enclosing parent.

Overrides:
getTag in class JspNode

endAttributes

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

Overrides:
endAttributes in class JspFragmentNode
Throws:
JspParseException

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

generatePrologue

public void generatePrologue(JspJavaWriter out)
                      throws java.lang.Exception
Generates the prologue.

Overrides:
generatePrologue in class JspNode
Throws:
java.lang.Exception

generatePrologueChildren

public void generatePrologueChildren(JspJavaWriter out)
                              throws java.lang.Exception
Generates the prologue as a child, i.e. in the fragment definition itself.

Overrides:
generatePrologueChildren in class JspContainerNode
Throws:
java.lang.Exception