public abstract class JspGenerator
extends java.lang.Object
JspParser parses the JSP file into an XML-DOM tree. JspGenerator generates code from that tree.
Modifier and Type | Field and Description |
---|---|
protected JspBuilder |
_jspBuilder |
protected JspCompiler |
_jspCompiler |
protected JspCompilerInstance |
_jspCompilerInstance |
protected JspParser |
_jspParser |
protected LineMap |
_lineMap |
Constructor and Description |
---|
JspGenerator() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected JspParser _jspParser
protected JspCompiler _jspCompiler
protected JspCompilerInstance _jspCompilerInstance
protected JspBuilder _jspBuilder
protected LineMap _lineMap
public void setJspCompiler(JspCompiler compiler)
public JspCompiler getJspCompiler()
public void setJspCompilerInstance(JspCompilerInstance compiler)
public JspCompilerInstance getJspCompilerInstance()
protected abstract void setParseState(ParseState parseState)
protected abstract ParseState getParseState()
public abstract int uniqueId()
public void setJspParser(JspParser parser)
public JspParser getJspParser()
public void setJspBuilder(JspBuilder builder)
public JspBuilder getJspBuilder()
public boolean isTagDependent()
public LineMap getLineMap()
public boolean isELIgnore()
public void addDepend(PersistentDependency depend)
public java.util.ArrayList<PersistentDependency> getDependList()
public boolean isStatic()
public TagInfo generateTagInfo(java.lang.String className, TagLibraryInfo tag)
public abstract void validate() throws java.lang.Exception
java.lang.Exception
protected abstract void generate(Path path, java.lang.String className) throws java.lang.Exception
java.lang.Exception
public java.lang.String getSourceLines(Path source, int errorLine)