public class Compiler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected JspCompilationContext |
ctxt |
protected Options |
options |
protected Node.Nodes |
pageNodes |
protected org.apache.tools.ant.Project |
project |
| Constructor and Description |
|---|
Compiler(JspCompilationContext ctxt) |
Compiler(JspCompilationContext ctxt,
JspServletWrapper jsw) |
| Modifier and Type | Method and Description |
|---|---|
void |
compile()
Compile the jsp file from the current engine context
|
void |
compile(boolean compileClass)
Compile the jsp file from the current engine context.
|
JspCompilationContext |
getCompilationContext() |
ErrorDispatcher |
getErrorDispatcher()
Gets the error dispatcher.
|
org.apache.jasper.compiler.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
|
protected JspCompilationContext ctxt
protected org.apache.tools.ant.Project project
protected Options options
protected Node.Nodes pageNodes
public Compiler(JspCompilationContext ctxt)
public Compiler(JspCompilationContext ctxt, JspServletWrapper jsw)
public void compile()
throws java.io.FileNotFoundException,
JasperException,
java.lang.Exception
java.io.FileNotFoundExceptionJasperExceptionjava.lang.Exceptionpublic 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.FileNotFoundExceptionJasperExceptionjava.lang.Exceptionpublic boolean isOutDated()
public boolean isOutDated(boolean checkClass)
checkClass - If true, check against .class file,
if false, check against .java file.public ErrorDispatcher getErrorDispatcher()
public org.apache.jasper.compiler.PageInfo getPageInfo()
public JspCompilationContext getCompilationContext()
public void removeGeneratedFiles()
public void removeGeneratedClassFiles()
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.