com.caucho.jsp.java
Class JspDeclaration

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

public class JspDeclaration
extends JspNode

Represents a Java declaration.


Field Summary
 
Fields inherited from class com.caucho.jsp.java.JspNode
_endAttributeLine, _endLine, _filename, _gen, _name, _ns, _parent, _parseState, _sourcePath, _startLine
 
Constructor Summary
JspDeclaration()
           
 
Method Summary
 JspNode addText(java.lang.String text)
          Adds text to the directive.
 void endElement()
          Completes the scriptlet.
 void generate(JspJavaWriter out)
          No general code.
 void generateDeclaration(JspJavaWriter out)
          Generates the code for the scriptlet
 boolean hasScripting()
          Returns true for a scripting element.
 boolean hasScriptingElement()
          True if the node has scripting element (i.e.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 
Methods inherited from class com.caucho.jsp.java.JspNode
addAttribute, addAttribute, addChild, addChildEnd, addNamespace, addNamespaceRec, attributeToBoolean, classToString, convertParameterValue, endAttributes, error, error, error, escapeJavaString, findScriptingNode, generateChildren, generateChildrenEmpty, generateClassEpilogue, generateClassEpilogueChildren, generateDeclarationChildren, generateELValue, generateEmpty, generateEndLocation, generateFragment, generateIncludeUrl, generateObject, generateParentTag, generatePrologue, generatePrologueChildren, generatePrologueDeclare, generateStartLocation, generateStatic, generateTagRelease, generateTagReleaseChildren, generateTagState, generateTagStateChildren, getBodyContent, getChildren, getCustomTagName, getEndAttributeLine, getEndLine, getFilename, getGenerator, getJsfBodyVar, getJsfVar, getNamespaceContext, getNamespacePrefix, getParent, getParentTagName, getParentTagNode, getQName, getRuntimeAttribute, getSegment, getStartLine, getStaticText, getStaticText, getTag, getTagName, hasCustomTag, hasDeferredAttribute, hasDeferredAttribute, hasELAttribute, hasELAttribute, hasNamespace, hasNamespace, hasRuntimeAttribute, hasScripting, hasScripting, hasTag, invokeFragment, isInFragment, isJsfParentRequired, isJsp21, isJstl, isPre21Taglib, 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

JspDeclaration

public JspDeclaration()
Method Detail

addText

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

Overrides:
addText in class JspNode

endElement

public void endElement()
                throws JspParseException
Completes the scriptlet.

Overrides:
endElement in class JspNode
Throws:
JspParseException

hasScripting

public boolean hasScripting()
Returns true for a scripting element.

Overrides:
hasScripting in class JspNode

hasScriptingElement

public boolean hasScriptingElement()
True if the node has scripting element (i.e. not counting rtexpr values)

Overrides:
hasScriptingElement in class JspNode

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

generateDeclaration

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

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

generate

public void generate(JspJavaWriter out)
              throws java.lang.Exception
No general code.

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