com.caucho.jsp.java
Class JspText

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspText

public class JspText
extends JspNode

Represents static text.


Field Summary
 
Fields inherited from class com.caucho.jsp.java.JspNode
_endAttributeLine, _endLine, _filename, _gen, _name, _ns, _parent, _parseState, _sourcePath, _startLine
 
Constructor Summary
JspText()
           
 
Method Summary
 void addChild(JspNode node)
          Adds a child node.
 JspNode addText(java.lang.String text)
          Adds text to the scriptlet.
 void generate(JspJavaWriter out)
          Generates the code for the static text
 void generatePrologue(JspJavaWriter out)
          generates prologue data.
 void generateStartLocation(JspJavaWriter out)
          Generates the start location.
 void generateStatic(JspJavaWriter out)
          Generates the code for the static text
 void generateTagStateChildren(JspJavaWriter out)
          generates tag state
 void getStaticText(CharBuffer cb)
          Returns the static text.
 boolean hasCustomTag()
          True if the node contains a child tag.
 boolean isStatic()
          Return true if the node only has static text.
 boolean isWhitespace()
          Returns true if whitespace.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 
Methods inherited from class com.caucho.jsp.java.JspNode
addAttribute, addAttribute, addChildEnd, addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, endAttributes, endElement, error, error, error, escapeJavaString, findScriptingNode, generateChildren, generateChildrenEmpty, generateClassEpilogue, generateClassEpilogueChildren, generateDeclaration, generateDeclarationChildren, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologueChildren, generatePrologueDeclare, generateTagRelease, generateTagReleaseChildren, generateTagState, getBodyContent, getChildren, 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, hasScripting, hasScriptingElement, hasTag, invokeFragment, isInFragment, isJsfParentRequired, 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

JspText

public JspText()
Method Detail

addText

public JspNode addText(java.lang.String text)
Adds text to the scriptlet.

Overrides:
addText in class JspNode

addChild

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

Overrides:
addChild in class JspNode
Throws:
JspParseException

isStatic

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

Overrides:
isStatic in class JspNode

getStaticText

public void getStaticText(CharBuffer cb)
Returns the static text.

Overrides:
getStaticText in class JspNode

isWhitespace

public boolean isWhitespace()
Returns true if whitespace.


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

generateStartLocation

public void generateStartLocation(JspJavaWriter out)
                           throws java.io.IOException
Generates the start location.

Overrides:
generateStartLocation in class JspNode
Throws:
java.io.IOException

generate

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

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

generatePrologue

public void generatePrologue(JspJavaWriter out)
                      throws java.lang.Exception
Description copied from class: JspNode
generates prologue data.

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

generateTagStateChildren

public void generateTagStateChildren(JspJavaWriter out)
                              throws java.lang.Exception
Description copied from class: JspNode
generates tag state

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

hasCustomTag

public boolean hasCustomTag()
Description copied from class: JspNode
True if the node contains a child tag.

Overrides:
hasCustomTag in class JspNode

generateStatic

public void generateStatic(JspJavaWriter out)
                    throws java.lang.Exception
Generates the code for the static text

Overrides:
generateStatic in class JspNode
Parameters:
out - the output writer for the generated java.
Throws:
java.lang.Exception