Package org.apache.jasper.compiler
Class NullJavaCompiler
- java.lang.Object
-
- org.apache.jasper.compiler.NullJavaCompiler
-
public class NullJavaCompiler extends Object
Java compiler for invoking JSP to java translation only. This only implements the part of JavaCompiler that handles the writing of the generated Java file.- Author:
- Kin-man Chung
-
-
Constructor Summary
Constructors Constructor Description NullJavaCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavacErrorDetail[]compile(String className, org.apache.jasper.compiler.Node.Nodes pageNodes)voiddoJavaFile(boolean keep)longgetClassLastModified()WritergetJavaWriter(String javaFileName, String javaEncoding)voidinit(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging)voidrelease()voidsaveClassFile(String className, String classFileName)voidsetClassPath(List<File> cpath)voidsetDebug(boolean debug)voidsetExtdirs(String exts)voidsetSourceVM(String sourceVM)voidsetTargetVM(String targetVM)
-
-
-
Method Detail
-
init
public void init(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging)
-
release
public void release()
-
setExtdirs
public void setExtdirs(String exts)
-
setTargetVM
public void setTargetVM(String targetVM)
-
setSourceVM
public void setSourceVM(String sourceVM)
-
setDebug
public void setDebug(boolean debug)
-
getClassLastModified
public long getClassLastModified()
-
getJavaWriter
public Writer getJavaWriter(String javaFileName, String javaEncoding) throws JasperException
- Throws:
JasperException
-
compile
public JavacErrorDetail[] compile(String className, org.apache.jasper.compiler.Node.Nodes pageNodes) throws JasperException
- Throws:
JasperException
-
doJavaFile
public void doJavaFile(boolean keep)
-
-