|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jasper.compiler.Compiler
public class Compiler
Main JSP compiler class.
Field Summary | |
---|---|
protected JspCompilationContext |
ctxt
|
Constructor Summary | |
---|---|
Compiler(JspCompilationContext ctxt,
JspServletWrapper jsw)
|
|
Compiler(JspCompilationContext ctxt,
JspServletWrapper jsw,
boolean jspcMode)
|
Method Summary | |
---|---|
void |
compile(boolean compileClass)
Compile the jsp file from the current engine context. |
JspCompilationContext |
getCompilationContext()
|
ErrorDispatcher |
getErrorDispatcher()
Gets the error dispatcher. |
PageInfo |
getPageInfo()
Gets the info about the page under compilation |
boolean |
isOutDated()
This is a protected method intended to be overridden by subclasses of Compiler. |
boolean |
isOutDated(boolean checkClass)
Determine if a compilation is necessary by checking the time stamp of the JSP page with that of the corresponding .class or .java file. |
void |
removeGeneratedClassFiles()
|
void |
removeGeneratedFiles()
Remove generated files |
void |
setPageInfo(PageInfo pageInfo)
Sets the info about the page under compilation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JspCompilationContext ctxt
Constructor Detail |
---|
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw)
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw, boolean jspcMode)
Method Detail |
---|
public void compile(boolean compileClass) throws FileNotFoundException, JasperException, Exception
compileClass
- If true, generate both .java and .class file
If false, generate only .java file
FileNotFoundException
JasperException
Exception
public boolean isOutDated()
public boolean isOutDated(boolean checkClass)
checkClass
- If true, check against .class file,
if false, check against .java file.public ErrorDispatcher getErrorDispatcher()
public PageInfo getPageInfo()
public void setPageInfo(PageInfo pageInfo)
public JspCompilationContext getCompilationContext()
public void removeGeneratedFiles()
public void removeGeneratedClassFiles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |