| java.lang.Object org.apache.jasper.compiler.Compiler
All known Subclasses: org.apache.jasper.compiler.AntCompiler, org.apache.jasper.compiler.JDTCompiler,
Compiler | abstract public class Compiler (Code) | | Main JSP compiler class. This class uses Ant for compiling.
author: Anil K. Vijendran author: Mandar Raje author: Pierre Delisle author: Kin-man Chung author: Remy Maucherat author: Mark Roth |
compile | public void compile(boolean compileClass) throws FileNotFoundException, JasperException, Exception(Code) | | Compile the jsp file from the current engine context. As an side- effect,
tag files that are referenced by this page are also compiled.
Parameters: compileClass - If true, generate both .java and .class file If false,generate only .java file |
compile | public void compile(boolean compileClass, boolean jspcMode) throws FileNotFoundException, JasperException, Exception(Code) | | Compile the jsp file from the current engine context. As an side- effect,
tag files that are referenced by this page are also compiled.
Parameters: compileClass - If true, generate both .java and .class file If false,generate only .java file Parameters: jspcMode - true if invoked from JspC, false otherwise |
generateJava | protected String[] generateJava() throws Exception(Code) | | Compile the jsp file into equivalent servlet in .java file
a smap for the current JSP page, if one is generated, nullotherwise |
getPageInfo | public PageInfo getPageInfo()(Code) | | Gets the info about the page under compilation
|
getPageNodes | public Node.Nodes getPageNodes()(Code) | |
Retrieves the parsed nodes of the JSP page, if they are available. May
return null. Used in development mode for generating detailed error
messages. http://issues.apache.org/bugzilla/show_bug.cgi?id=37062.
|
isOutDated | public boolean isOutDated()(Code) | | This is a protected method intended to be overridden by subclasses of
Compiler. This is used by the compile method to do all the compilation.
|
isOutDated | public boolean isOutDated(boolean checkClass)(Code) | | Determine if a compilation is necessary by checking the time stamp of the
JSP page with that of the corresponding .class or .java file. If the page
has dependencies, the check is also extended to its dependeants, and so
on. This method can by overidden by a subclasses of Compiler.
Parameters: checkClass - If true, check against .class file, if false, check against.java file. |
removeGeneratedClassFiles | public void removeGeneratedClassFiles()(Code) | | |
removeGeneratedFiles | public void removeGeneratedFiles()(Code) | | Remove generated files
|
|
|