Package org.apache.jasper.compiler
Class JDTJavaCompiler
- java.lang.Object
-
- org.apache.jasper.compiler.JDTJavaCompiler
-
public class JDTJavaCompiler extends Object
JDT class compiler. This compiler will load source dependencies from the context classloader, reducing dramatically disk access during the compilation process.- Author:
- Cocoon2, Remy Maucherat, Kin-man Chung Modified to implement JavaCompiler
-
-
Constructor Summary
Constructors Constructor Description JDTJavaCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavacErrorDetail[]
compile(String targetClassName, org.apache.jasper.compiler.Node.Nodes pageNodes)
void
doJavaFile(boolean keep)
long
getClassLastModified()
Writer
getJavaWriter(String javaFileName, String javaEncoding)
void
init(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging)
void
release()
void
saveClassFile(String className, String classFileName)
void
setClassPath(List<File> cpath)
void
setDebug(boolean debug)
void
setExtdirs(String exts)
void
setSourceVM(String sourceVM)
void
setTargetVM(String targetVM)
-
-
-
Method Detail
-
init
public void init(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging)
-
release
public void release()
-
setExtdirs
public void setExtdirs(String exts)
-
getClassLastModified
public long getClassLastModified()
-
getJavaWriter
public Writer getJavaWriter(String javaFileName, String javaEncoding) throws JasperException
- Throws:
JasperException
-
setDebug
public void setDebug(boolean debug)
-
setSourceVM
public void setSourceVM(String sourceVM)
-
setTargetVM
public void setTargetVM(String targetVM)
-
doJavaFile
public void doJavaFile(boolean keep)
-
compile
public JavacErrorDetail[] compile(String targetClassName, org.apache.jasper.compiler.Node.Nodes pageNodes) throws JasperException
- Throws:
JasperException
-
-