public class NullJavaCompiler extends java.lang.Object implements JavaCompiler
| Modifier and Type | Field and Description |
|---|---|
private JspCompilationContext |
ctxt |
private ErrorDispatcher |
errDispatcher |
private java.lang.String |
javaEncoding |
private java.lang.String |
javaFileName |
| Constructor and Description |
|---|
NullJavaCompiler() |
| Modifier and Type | Method and Description |
|---|---|
JavacErrorDetail[] |
compile(java.lang.String className,
Node.Nodes pageNodes)
Start Java compilation
|
void |
doJavaFile(boolean keep)
Remove/save the generated Java File from/to disk
|
long |
getClassLastModified()
Return the time the class file was generated.
|
java.io.Writer |
getJavaWriter(java.lang.String javaFileName,
java.lang.String javaEncoding)
Get a Writer for the Java file.
|
void |
init(JspCompilationContext ctxt,
ErrorDispatcher errDispatcher,
boolean suppressLogging)
Initializations
|
void |
release()
Release resouces used in the current compilation
|
void |
saveClassFile(java.lang.String className,
java.lang.String classFileName)
Save the generated class file to disk, if not already done.
|
void |
setClassPath(java.util.List<java.io.File> cpath)
Java Compiler options.
|
void |
setDebug(boolean debug) |
void |
setExtdirs(java.lang.String exts) |
void |
setSourceVM(java.lang.String sourceVM) |
void |
setTargetVM(java.lang.String targetVM) |
private JspCompilationContext ctxt
private ErrorDispatcher errDispatcher
private java.lang.String javaFileName
private java.lang.String javaEncoding
public void init(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging)
JavaCompilerinit in interface JavaCompilerpublic void release()
JavaCompilerrelease in interface JavaCompilerpublic void setExtdirs(java.lang.String exts)
setExtdirs in interface JavaCompilerpublic void setTargetVM(java.lang.String targetVM)
setTargetVM in interface JavaCompilerpublic void setSourceVM(java.lang.String sourceVM)
setSourceVM in interface JavaCompilerpublic void setClassPath(java.util.List<java.io.File> cpath)
JavaCompilersetClassPath in interface JavaCompilerpublic void saveClassFile(java.lang.String className,
java.lang.String classFileName)
JavaCompilersaveClassFile in interface JavaCompilerpublic void setDebug(boolean debug)
setDebug in interface JavaCompilerpublic long getClassLastModified()
JavaCompilergetClassLastModified in interface JavaCompilerpublic java.io.Writer getJavaWriter(java.lang.String javaFileName,
java.lang.String javaEncoding)
throws JasperException
JavaCompilergetJavaWriter in interface JavaCompilerJasperExceptionpublic JavacErrorDetail[] compile(java.lang.String className, Node.Nodes pageNodes) throws JasperException
JavaCompilercompile in interface JavaCompilerclassName - Name of the class under compilationJasperExceptionpublic void doJavaFile(boolean keep)
JavaCompilerdoJavaFile in interface JavaCompiler