com.caucho.jsp.java
Class JsfNode

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.JsfNode
Direct Known Subclasses:
JsfFacetNode, JsfPhaseListener, JsfTagNode, JsfViewRoot

public abstract class JsfNode
extends JspContainerNode


Field Summary
protected  java.lang.String _bodyVar
           
protected  java.lang.String _var
           
 
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
JsfNode()
           
 
Method Summary
 void addAttribute(QName name, JspAttribute value)
          Adds a JspAttribute attribute.
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute.
protected  java.lang.reflect.Method findSetter(java.lang.Class cl, java.lang.String name)
           
 void generateChildren(JspJavaWriter out)
          Generates the code for the children.
 void generatePrologue(JspJavaWriter out)
          generates prologue data.
 java.lang.String getJsfBodyVar()
          Returns the variable containing the jsf body
 java.lang.String getJsfVar()
          Returns the variable containing the jsf parent
protected  boolean hasBodyContent()
          Generates the code for the children.
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttributeChild, addChild, addChildEnd, addText, findScriptingNode, 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, endAttributes, endElement, error, error, error, escapeJavaString, generate, generateClassEpilogue, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologueDeclare, generateStartLocation, generateTagRelease, generateTagState, getBodyContent, getCustomTagName, getEndAttributeLine, getEndLine, getFilename, getGenerator, 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, isStatic, 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
 

Field Detail

_var

protected java.lang.String _var

_bodyVar

protected java.lang.String _bodyVar
Constructor Detail

JsfNode

public JsfNode()
Method Detail

getJsfVar

public java.lang.String getJsfVar()
Returns the variable containing the jsf parent

Overrides:
getJsfVar in class JspNode

getJsfBodyVar

public java.lang.String getJsfBodyVar()
Returns the variable containing the jsf body

Overrides:
getJsfBodyVar in class JspNode

addAttribute

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

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

addAttribute

public void addAttribute(QName name,
                         JspAttribute value)
                  throws JspParseException
Adds a JspAttribute attribute.

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

generatePrologue

public void generatePrologue(JspJavaWriter out)
                      throws java.lang.Exception
generates prologue data.

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

generateChildren

public void generateChildren(JspJavaWriter out)
                      throws java.lang.Exception
Generates the code for the children.

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

hasBodyContent

protected boolean hasBodyContent()
                          throws java.lang.Exception
Generates the code for the children.

Parameters:
out - the output writer for the generated java.
Throws:
java.lang.Exception

findSetter

protected java.lang.reflect.Method findSetter(java.lang.Class cl,
                                              java.lang.String name)