com.caucho.jsp.java
Class TagFileTag

java.lang.Object
  extended by com.caucho.jsp.java.JspNode
      extended by com.caucho.jsp.java.JspContainerNode
          extended by com.caucho.jsp.java.GenericTag
              extended by com.caucho.jsp.java.TagFileTag

public class TagFileTag
extends GenericTag

Represents a custom tag.


Field Summary
 
Fields inherited from class com.caucho.jsp.java.GenericTag
_tag, _tagClass, _tagInfo, _varInfo
 
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
TagFileTag()
           
 
Method Summary
protected  void addTagDepend()
           
 void endAttributes()
          Called when the attributes end.
 void endElement()
          Adds a child node.
 java.lang.String fillTagFileAttributes(JspJavaWriter out, java.lang.String tagName, java.lang.String customTagName)
           
 void generate(JspJavaWriter out)
          Generates the code for a custom tag.
 void generateDeclaration(JspJavaWriter out)
          Generates the code for a custom tag.
 void generatePrologue(JspJavaWriter out)
          Generates code before the actual JSP.
 void generateTagState(JspJavaWriter out)
          Generates code before the actual JSP.
 java.lang.String getTagClassName()
          Returns null, since tag files aren't parent tags.
 boolean hasCustomTag()
          Set true if the node contains a child tag.
 boolean hasTag()
          Returns true if the tag file invocation contains a child tag.
 
Methods inherited from class com.caucho.jsp.java.GenericTag
addChild, fillAttributes, fillVariableInfo, generateClassEpilogue, generatePrologueDeclare, getBodyContent, getCustomTagName, getJsfBodyVar, getJsfVar, getTag, getTagInfo, getVarInfo, hasScripting, hasScriptlet, hasVarDeclaration, isDeclared, isDeclaringInstance, isJsfParentRequired, isJsp21, isJstl, isPre21Taglib, isSimple, printVarAssign, printVarAssign, printVarDeclaration, printVarDeclare, printVarDeclare, printXml, setTagClass, setTagInfo, validateClass
 
Methods inherited from class com.caucho.jsp.java.JspContainerNode
addAttribute, addAttribute, addAttributeChild, addChildEnd, addText, findScriptingNode, generateChildren, generateChildrenEmpty, generateClassEpilogueChildren, generateDeclarationChildren, generatePrologueChildren, generateStatic, generateTagReleaseChildren, generateTagStateChildren, getAttribute, getChildren, getStaticText, hasChildren, hasScriptingElement, isChildrenStatic, isEmpty, isSingleExpression, isWhitespace, printXmlChildren
 
Methods inherited from class com.caucho.jsp.java.JspNode
addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, error, error, error, escapeJavaString, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generateStartLocation, generateTagRelease, getEndAttributeLine, getEndLine, getFilename, getGenerator, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getTagName, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, invokeFragment, isInFragment, isSimpleTag, isStatic, 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

TagFileTag

public TagFileTag()
Method Detail

endAttributes

public void endAttributes()
Called when the attributes end.

Overrides:
endAttributes in class JspNode

endElement

public void endElement()
                throws java.lang.Exception
Adds a child node.

Overrides:
endElement in class GenericTag
Throws:
java.lang.Exception

hasCustomTag

public boolean hasCustomTag()
Description copied from class: JspContainerNode
Set true if the node contains a child tag.

Overrides:
hasCustomTag in class JspContainerNode

generateTagState

public void generateTagState(JspJavaWriter out)
                      throws java.lang.Exception
Generates code before the actual JSP.

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

generateDeclaration

public void generateDeclaration(JspJavaWriter out)
                         throws java.io.IOException
Generates the code for a custom tag.

Overrides:
generateDeclaration in class JspNode
Parameters:
out - the output writer for the generated java.
Throws:
java.io.IOException

hasTag

public boolean hasTag()
Returns true if the tag file invocation contains a child tag.

Overrides:
hasTag in class JspContainerNode

getTagClassName

public java.lang.String getTagClassName()
Returns null, since tag files aren't parent tags.


generatePrologue

public void generatePrologue(JspJavaWriter out)
                      throws java.lang.Exception
Generates code before the actual JSP.

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

generate

public void generate(JspJavaWriter out)
              throws java.lang.Exception
Generates the code for a custom tag.

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

fillTagFileAttributes

public java.lang.String fillTagFileAttributes(JspJavaWriter out,
                                              java.lang.String tagName,
                                              java.lang.String customTagName)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

addTagDepend

protected void addTagDepend()
Overrides:
addTagDepend in class GenericTag