public class Compiler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected JspCompilationContext |
ctxt |
Constructor and Description |
---|
Compiler(JspCompilationContext ctxt,
JspServletWrapper jsw) |
Compiler(JspCompilationContext ctxt,
JspServletWrapper jsw,
boolean jspcMode) |
Modifier and Type | Method and Description |
---|---|
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
|
protected JspCompilationContext ctxt
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw)
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw, boolean jspcMode) throws JasperException
JasperException
public void compile(boolean compileClass) throws java.io.FileNotFoundException, JasperException, java.lang.Exception
compileClass
- If true, generate both .java and .class file
If false, generate only .java filejava.io.FileNotFoundException
JasperException
java.lang.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()