com.caucho.jsp
Class JspBuilder

java.lang.Object
  extended by com.caucho.jsp.JspBuilder
Direct Known Subclasses:
JavaJspBuilder

public abstract class JspBuilder
extends java.lang.Object

Generates the nodes for JSP code.


Field Summary
protected  java.lang.String _filename
           
protected  JspCompiler _jspCompiler
           
protected  JspParser _jspParser
           
protected  int _line
           
protected  ParseState _parseState
           
protected  Path _sourcePath
           
protected  ParseTagManager _tagManager
           
 
Constructor Summary
JspBuilder()
           
 
Method Summary
 void addNamespace(java.lang.String prefix, java.lang.String uri)
           
abstract  void attribute(QName name, java.lang.String value)
          Adds an attribute to the element.
abstract  void endAttributes()
          Called after the attributes end.
abstract  void endDocument()
          Starts the document
abstract  void endElement(java.lang.String name)
          Ends an element.
abstract  JspNode getCurrentNode()
          Returns the current node.
abstract  JspGenerator getGenerator()
          Returns the generator.
 JsfPropertyGroup getJsfPropertyGroup()
           
 JspCompiler getJspCompiler()
          Returns the parse state.
 JspParser getJspParser()
          Returns the parse state.
 JspPropertyGroup getJspPropertyGroup()
          Gets the jsp-property-group
 ParseState getParseState()
          Returns the parse state.
 boolean getRequireSource()
          Returns true if require source is enabled.
abstract  JspNode getRootNode()
          Returns the top node.
 ParseTagManager getTagManager()
          Returns the tag manager
 boolean isFastJsf()
          Returns true if fast-jsf is enabled.
 boolean isFastJstl()
          Returns true if fast-jstl is enabled.
 boolean isTagDependent()
           
 void setJsfPropertyGroup(JsfPropertyGroup jsfPropertyGroup)
           
 void setJspCompiler(JspCompiler compiler)
          Sets the compiler
 void setJspParser(JspParser parser)
          Sets the parser
 void setJspPropertyGroup(JspPropertyGroup jsp)
          Sets the jsp-property-group
 void setLocation(Path sourcePath, java.lang.String filename, int line)
          Sets the source line number.
 void setPageConfig(JspPageConfig pageConfig)
          Sets the page config?
 void setParseState(ParseState parseState)
          Sets the parse state.
 void setPrototype(boolean isPrototype)
          Set for prototype builder.
 void setTagManager(ParseTagManager manager)
          Sets the tag manager
abstract  void startDocument()
          Starts the document
abstract  void startElement(QName qname)
          Starts an element.
abstract  void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Starts a prefix mapping.
 void startTagDependent()
           
abstract  void text(java.lang.String text)
          Adds text.
 void text(java.lang.String text, java.lang.String filename, int startLine, int endLine)
          Adds text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sourcePath

protected Path _sourcePath

_filename

protected java.lang.String _filename

_line

protected int _line

_parseState

protected ParseState _parseState

_jspParser

protected JspParser _jspParser

_jspCompiler

protected JspCompiler _jspCompiler

_tagManager

protected ParseTagManager _tagManager
Constructor Detail

JspBuilder

public JspBuilder()
Method Detail

getGenerator

public abstract JspGenerator getGenerator()
Returns the generator.


getRootNode

public abstract JspNode getRootNode()
Returns the top node.


setParseState

public void setParseState(ParseState parseState)
Sets the parse state.


getParseState

public ParseState getParseState()
Returns the parse state.


setPageConfig

public void setPageConfig(JspPageConfig pageConfig)
Sets the page config?


setJspCompiler

public void setJspCompiler(JspCompiler compiler)
Sets the compiler


getJspCompiler

public JspCompiler getJspCompiler()
Returns the parse state.


setJspParser

public void setJspParser(JspParser parser)
Sets the parser


getJspParser

public JspParser getJspParser()
Returns the parse state.


setTagManager

public void setTagManager(ParseTagManager manager)
Sets the tag manager


getTagManager

public ParseTagManager getTagManager()
Returns the tag manager


setJspPropertyGroup

public void setJspPropertyGroup(JspPropertyGroup jsp)
Sets the jsp-property-group


getJspPropertyGroup

public JspPropertyGroup getJspPropertyGroup()
Gets the jsp-property-group


isFastJstl

public boolean isFastJstl()
Returns true if fast-jstl is enabled.


getJsfPropertyGroup

public JsfPropertyGroup getJsfPropertyGroup()

setJsfPropertyGroup

public void setJsfPropertyGroup(JsfPropertyGroup jsfPropertyGroup)

isFastJsf

public boolean isFastJsf()
Returns true if fast-jsf is enabled.


getRequireSource

public boolean getRequireSource()
Returns true if require source is enabled.


setPrototype

public void setPrototype(boolean isPrototype)
Set for prototype builder.


setLocation

public void setLocation(Path sourcePath,
                        java.lang.String filename,
                        int line)
Sets the source line number.


startDocument

public abstract void startDocument()
                            throws JspParseException
Starts the document

Throws:
JspParseException

endDocument

public abstract void endDocument()
                          throws JspParseException
Starts the document

Throws:
JspParseException

startElement

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

Parameters:
qname - the name of the element to start
Throws:
JspParseException

startPrefixMapping

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

Parameters:
prefix - the xml prefix
uri - the namespace uri
Throws:
JspParseException

attribute

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

Parameters:
name - the attribute name
value - the attribute value
Throws:
JspParseException

endAttributes

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

Throws:
JspParseException

endElement

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

Parameters:
name - the name of the element to end
Throws:
JspParseException

text

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

Parameters:
text - the text to add
Throws:
JspParseException

text

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

Parameters:
text - the text to add
Throws:
JspParseException

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String uri)

getCurrentNode

public abstract JspNode getCurrentNode()
Returns the current node.


startTagDependent

public void startTagDependent()

isTagDependent

public boolean isTagDependent()