com.caucho.jsp
Class JspGenerator

java.lang.Object
  extended by com.caucho.jsp.JspGenerator
Direct Known Subclasses:
JavaJspGenerator

public abstract class JspGenerator
extends java.lang.Object

Generates JSP code. JavaGenerator, JavaScriptGenerator, and StaticGenerator specialize the JspGenerator for language-specific requirements.

JspParser parses the JSP file into an XML-DOM tree. JspGenerator generates code from that tree.


Field Summary
protected  JspBuilder _jspBuilder
           
protected  JspCompiler _jspCompiler
           
protected  JspCompilerInstance _jspCompilerInstance
           
protected  JspParser _jspParser
           
protected  LineMap _lineMap
           
 
Constructor Summary
JspGenerator()
           
 
Method Summary
 void addDepend(PersistentDependency depend)
           
protected abstract  void generate(Path path, java.lang.String className)
          Generates the JSP page.
 TagInfo generateTagInfo(java.lang.String className, TagLibraryInfo tag)
          Returns the tags taginfo.
 java.util.ArrayList<PersistentDependency> getDependList()
           
 JspBuilder getJspBuilder()
           
 JspCompiler getJspCompiler()
           
 JspCompilerInstance getJspCompilerInstance()
           
 JspParser getJspParser()
           
 LineMap getLineMap()
           
protected abstract  ParseState getParseState()
           
 java.lang.String getSourceLines(Path source, int errorLine)
           
 boolean isELIgnore()
           
 boolean isStatic()
          Returns true if the JSP compilation has produced a static file.
 boolean isTagDependent()
           
 void setJspBuilder(JspBuilder builder)
           
 void setJspCompiler(JspCompiler compiler)
           
 void setJspCompilerInstance(JspCompilerInstance compiler)
           
 void setJspParser(JspParser parser)
           
protected abstract  void setParseState(ParseState parseState)
           
abstract  int uniqueId()
           
abstract  void validate()
          Validates the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_jspParser

protected JspParser _jspParser

_jspCompiler

protected JspCompiler _jspCompiler

_jspCompilerInstance

protected JspCompilerInstance _jspCompilerInstance

_jspBuilder

protected JspBuilder _jspBuilder

_lineMap

protected LineMap _lineMap
Constructor Detail

JspGenerator

public JspGenerator()
Method Detail

setJspCompiler

public void setJspCompiler(JspCompiler compiler)

getJspCompiler

public JspCompiler getJspCompiler()

setJspCompilerInstance

public void setJspCompilerInstance(JspCompilerInstance compiler)

getJspCompilerInstance

public JspCompilerInstance getJspCompilerInstance()

setParseState

protected abstract void setParseState(ParseState parseState)

getParseState

protected abstract ParseState getParseState()

uniqueId

public abstract int uniqueId()

setJspParser

public void setJspParser(JspParser parser)

getJspParser

public JspParser getJspParser()

setJspBuilder

public void setJspBuilder(JspBuilder builder)

getJspBuilder

public JspBuilder getJspBuilder()

isTagDependent

public boolean isTagDependent()

getLineMap

public LineMap getLineMap()

isELIgnore

public boolean isELIgnore()

addDepend

public void addDepend(PersistentDependency depend)

getDependList

public java.util.ArrayList<PersistentDependency> getDependList()

isStatic

public boolean isStatic()
Returns true if the JSP compilation has produced a static file.


generateTagInfo

public TagInfo generateTagInfo(java.lang.String className,
                               TagLibraryInfo tag)
Returns the tags taginfo.


validate

public abstract void validate()
                       throws java.lang.Exception
Validates the page.

Throws:
java.lang.Exception

generate

protected abstract void generate(Path path,
                                 java.lang.String className)
                          throws java.lang.Exception
Generates the JSP page.

Throws:
java.lang.Exception

getSourceLines

public java.lang.String getSourceLines(Path source,
                                       int errorLine)