com.caucho.jsp.java
Class JavaJspBuilder

java.lang.Object
  extended by com.caucho.jsp.JspBuilder
      extended by com.caucho.jsp.java.JavaJspBuilder

public class JavaJspBuilder
extends JspBuilder

Generates the nodes for JSP code.


Field Summary
static java.lang.String JSF_CORE_URI
           
static QName JSP_ATTR_NAME
           
static QName JSP_BODY_NAME
           
static java.lang.String JSTL_CORE_URI
           
static java.lang.String JSTL_EL_CORE_URI
           
static java.lang.String JSTL_EL_FMT_URI
           
static java.lang.String JSTL_EL_SQL_URI
           
static java.lang.String JSTL_EL_XML_URI
           
static java.lang.String JSTL_FMT_URI
           
static java.lang.String JSTL_RT_CORE_URI
           
static java.lang.String JSTL_RT_FMT_URI
           
static java.lang.String JSTL_RT_SQL_URI
           
static java.lang.String JSTL_RT_XML_URI
           
static java.lang.String JSTL_SQL_URI
           
static java.lang.String JSTL_XML_URI
           
 
Fields inherited from class com.caucho.jsp.JspBuilder
_filename, _jspCompiler, _jspParser, _line, _parseState, _sourcePath, _tagManager
 
Constructor Summary
JavaJspBuilder()
          Creates the JSP builder.
 
Method Summary
 void attribute(QName name, java.lang.String value)
          Adds an attribute to the element.
protected  void createElementNode(QName qname)
           
 void endAttributes()
          Called when the attributes end.
 void endDocument()
          Starts the document
 void endElement(java.lang.String name)
          Ends an element.
 JspParseException error(java.lang.String message)
           
 JspParseException error(java.lang.Throwable e)
           
 JspNode getCurrentNode()
          Returns the current node.
 JspGenerator getGenerator()
          Returns the generator.
 JspNode getRootNode()
          Returns the root node.
 boolean isPrototype()
          Gets the prototype mode.
 boolean isTagDependent()
           
 void setPrototype(boolean prototype)
          Sets the prototype mode.
 void startDocument()
          Starts the document
 void startElement(QName qname)
          Starts an element.
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Starts a prefix mapping.
 void startTagDependent()
           
 void text(java.lang.String text)
          Adds text.
 void text(java.lang.String text, java.lang.String srcFilename, int startLine, int endLine)
          Adds text.
 
Methods inherited from class com.caucho.jsp.JspBuilder
addNamespace, getJsfPropertyGroup, getJspCompiler, getJspParser, getJspPropertyGroup, getParseState, getRequireSource, getTagManager, isFastJsf, isFastJstl, setJsfPropertyGroup, setJspCompiler, setJspParser, setJspPropertyGroup, setLocation, setPageConfig, setParseState, setTagManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSTL_CORE_URI

public static final java.lang.String JSTL_CORE_URI
See Also:
Constant Field Values

JSTL_EL_CORE_URI

public static final java.lang.String JSTL_EL_CORE_URI
See Also:
Constant Field Values

JSTL_RT_CORE_URI

public static final java.lang.String JSTL_RT_CORE_URI
See Also:
Constant Field Values

JSTL_FMT_URI

public static final java.lang.String JSTL_FMT_URI
See Also:
Constant Field Values

JSTL_EL_FMT_URI

public static final java.lang.String JSTL_EL_FMT_URI
See Also:
Constant Field Values

JSTL_RT_FMT_URI

public static final java.lang.String JSTL_RT_FMT_URI
See Also:
Constant Field Values

JSTL_XML_URI

public static final java.lang.String JSTL_XML_URI
See Also:
Constant Field Values

JSTL_EL_XML_URI

public static final java.lang.String JSTL_EL_XML_URI
See Also:
Constant Field Values

JSTL_RT_XML_URI

public static final java.lang.String JSTL_RT_XML_URI
See Also:
Constant Field Values

JSTL_SQL_URI

public static final java.lang.String JSTL_SQL_URI
See Also:
Constant Field Values

JSTL_EL_SQL_URI

public static final java.lang.String JSTL_EL_SQL_URI
See Also:
Constant Field Values

JSTL_RT_SQL_URI

public static final java.lang.String JSTL_RT_SQL_URI
See Also:
Constant Field Values

JSF_CORE_URI

public static final java.lang.String JSF_CORE_URI
See Also:
Constant Field Values

JSP_BODY_NAME

public static final QName JSP_BODY_NAME

JSP_ATTR_NAME

public static final QName JSP_ATTR_NAME
Constructor Detail

JavaJspBuilder

public JavaJspBuilder()
Creates the JSP builder.

Method Detail

getGenerator

public JspGenerator getGenerator()
Returns the generator.

Specified by:
getGenerator in class JspBuilder

getRootNode

public JspNode getRootNode()
Returns the root node.

Specified by:
getRootNode in class JspBuilder

setPrototype

public void setPrototype(boolean prototype)
Sets the prototype mode.

Overrides:
setPrototype in class JspBuilder

isPrototype

public boolean isPrototype()
Gets the prototype mode.


startDocument

public void startDocument()
                   throws JspParseException
Starts the document

Specified by:
startDocument in class JspBuilder
Throws:
JspParseException

endDocument

public void endDocument()
                 throws JspParseException
Starts the document

Specified by:
endDocument in class JspBuilder
Throws:
JspParseException

startElement

public void startElement(QName qname)
                  throws JspParseException
Starts an element.

Specified by:
startElement in class JspBuilder
Parameters:
qname - the name of the element to start
Throws:
JspParseException

startTagDependent

public void startTagDependent()
Overrides:
startTagDependent in class JspBuilder

isTagDependent

public boolean isTagDependent()
Overrides:
isTagDependent in class JspBuilder

createElementNode

protected void createElementNode(QName qname)

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws JspParseException
Starts a prefix mapping.

Specified by:
startPrefixMapping in class JspBuilder
Parameters:
prefix - the xml prefix
uri - the namespace uri
Throws:
JspParseException

attribute

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

Specified by:
attribute in class JspBuilder
Parameters:
name - the attribute name
value - the attribute value
Throws:
JspParseException

endAttributes

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

Specified by:
endAttributes in class JspBuilder
Throws:
JspParseException

endElement

public void endElement(java.lang.String name)
                throws JspParseException
Ends an element.

Specified by:
endElement in class JspBuilder
Parameters:
qname - the name of the element to end
Throws:
JspParseException

text

public void text(java.lang.String text)
          throws JspParseException
Adds text.

Specified by:
text in class JspBuilder
Parameters:
text - the text to add
Throws:
JspParseException

text

public void text(java.lang.String text,
                 java.lang.String srcFilename,
                 int startLine,
                 int endLine)
          throws JspParseException
Adds text.

Overrides:
text in class JspBuilder
Parameters:
text - the text to add
Throws:
JspParseException

getCurrentNode

public JspNode getCurrentNode()
Returns the current node.

Specified by:
getCurrentNode in class JspBuilder

error

public JspParseException error(java.lang.String message)

error

public JspParseException error(java.lang.Throwable e)