com.caucho.jsp.java
Class JspFragmentNode

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JspFragmentNode
All Implemented Interfaces:
JspSegmentNode
Direct Known Subclasses:
JspAttribute, JspBody

public abstract class JspFragmentNode
extends JspContainerNode
implements JspSegmentNode

Represents the body for a fragment (jsp:attribute or jsp:body)


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
JspFragmentNode()
           
 
Method Summary
 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 children.
 void generateFragmentPrologue(JspJavaWriter out)
          Generates code for the fragment variables.
protected  java.lang.String generateValue()
          Generates the code for a fragment.
 java.lang.String getCustomTagName()
          Returns the tag name for the current tag.
 int getFragmentCode()
           
 java.lang.String getFragmentName()
          Returns the fragment name.
 boolean isJspFragment()
          Set true if the fragment is used as a fragment object.
 boolean isStatic()
          Returns true if the children are static.
 boolean isTrim()
          Returns true if trimming is enabled.
 boolean isValueFragment()
          Returns true if the children are static.
 void setJspFragment(boolean isFragment)
          Set true if the fragment is used as a fragment object.
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, addAttribute, addAttributeChild, addChild, 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, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, endElement, error, error, error, escapeJavaString, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologue, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, 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, isJstl, isPre21Taglib, isSimpleTag, 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
 

Constructor Detail

JspFragmentNode

public JspFragmentNode()
Method Detail

endAttributes

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

Overrides:
endAttributes in class JspNode
Throws:
JspParseException

getFragmentName

public java.lang.String getFragmentName()
Returns the fragment name.


getCustomTagName

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

Overrides:
getCustomTagName in class JspNode

addText

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

Overrides:
addText in class JspContainerNode
Throws:
JspParseException

isTrim

public boolean isTrim()
Returns true if trimming is enabled.


isStatic

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

Overrides:
isStatic in class JspNode

isValueFragment

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


getFragmentCode

public int getFragmentCode()

setJspFragment

public void setJspFragment(boolean isFragment)
Set true if the fragment is used as a fragment object.


isJspFragment

public boolean isJspFragment()
Set true if the fragment is used as a fragment object.


generateFragmentPrologue

public void generateFragmentPrologue(JspJavaWriter out)
                              throws java.lang.Exception
Generates code for the fragment variables.

Throws:
java.lang.Exception

generate

public void generate(JspJavaWriter out)
              throws java.lang.Exception
Generates the children.

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

generateValue

protected java.lang.String generateValue()
                                  throws java.lang.Exception
Generates the code for a fragment.

Throws:
java.lang.Exception