com.caucho.jsp.java
Class JspPlugin

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

public class JspPlugin
extends JspNode

Represents a Java scriptlet.


Field Summary
 
Fields inherited from class com.caucho.jsp.java.JspNode
_endAttributeLine, _endLine, _filename, _gen, _ns, _parent, _parseState, _sourcePath, _startLine
 
Constructor Summary
JspPlugin()
           
 
Method Summary
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute.
 void addChild(JspNode node)
          Adds a child.
 void addChildEnd(JspNode node)
          Adds a child.
 void endElement()
          Called after the attributes complete.
 void generate(JspJavaWriter out)
          Generates the code for the scriptlet
protected  void generateObjectParams(JspJavaWriter out, boolean isEmbed)
          Generates the parameters for the jsp:plugin object.
 void printXml(WriteStream os)
          Generates the XML text representation for the tag validation.
 
Methods inherited from class com.caucho.jsp.java.JspNode
addAttribute, addNamespace, addNamespaceRec, addText, attributeToBoolean, classToString, convertParameterValue, endAttributes, error, error, error, escapeJavaString, findScriptingNode, generateChildren, generateChildrenEmpty, generateClassEpilogue, generateClassEpilogueChildren, generateDeclaration, 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, hasScripting, hasScriptingElement, 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

JspPlugin

public JspPlugin()
Method Detail

addAttribute

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

Overrides:
addAttribute in class JspNode
Throws:
JspParseException

addChild

public void addChild(JspNode node)
              throws JspParseException
Adds a child.

Overrides:
addChild in class JspNode
Throws:
JspParseException

addChildEnd

public void addChildEnd(JspNode node)
                 throws JspParseException
Adds a child.

Overrides:
addChildEnd in class JspNode
Throws:
JspParseException

endElement

public void endElement()
                throws JspParseException
Called after the attributes complete.

Overrides:
endElement in class JspNode
Throws:
JspParseException

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

generate

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

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

generateObjectParams

protected void generateObjectParams(JspJavaWriter out,
                                    boolean isEmbed)
                             throws java.lang.Exception
Generates the parameters for the jsp:plugin object.

Throws:
java.lang.Exception