com.caucho.jsp.java
Class CustomSimpleTag

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.CustomSimpleTag

public class CustomSimpleTag
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
CustomSimpleTag()
           
 
Method Summary
protected  void addTagDepend()
           
 void endAttributes()
          Called when the attributes end.
 void endElement()
          Adds a child node.
 void generate(JspJavaWriter out)
          Generates the code for a custom tag.
 void generatePrologue(JspJavaWriter out)
          Generates code before the actual JSP.
 boolean hasCustomTag()
          Set true if the node contains a child tag.
 boolean isReuse()
          Simple tags can't be reused.
 
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, hasTag, isChildrenStatic, isEmpty, isSingleExpression, isWhitespace, printXmlChildren
 
Methods inherited from class com.caucho.jsp.java.JspNode
addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, error, error, error, escapeJavaString, generateDeclaration, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generateStartLocation, generateTagRelease, generateTagState, 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

CustomSimpleTag

public CustomSimpleTag()
Method Detail

isReuse

public boolean isReuse()
Simple tags can't be reused.


addTagDepend

protected void addTagDepend()
Overrides:
addTagDepend in class GenericTag

endAttributes

public void endAttributes()
                   throws JspParseException
Called when the attributes end.

Overrides:
endAttributes in class JspNode
Throws:
JspParseException

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()
Set true if the node contains a child tag.

Overrides:
hasCustomTag in class JspContainerNode

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