FileDocCategorySizeDatePackage
JavaCompiler.javaAPI DocGlassfish v2 API3742Fri May 04 22:32:52 BST 2007org.apache.jasper.compiler

JavaCompiler

public interface JavaCompiler

Fields Summary
Constructors Summary
Methods Summary
public JavacErrorDetail[]compile(java.lang.String className, Node.Nodes pageNodes)
Start Java compilation

param
className Name of the class under compilation
param
pageNode Internal form for the page, used for error line mapping

public voiddoJavaFile(boolean keep)
Remove/save the generated Java File from/to disk

public longgetClassLastModified()
Return the time the class file was generated.

public java.io.WritergetJavaWriter(java.lang.String javaFileName, java.lang.String javaEncoding)
Get a Writer for the Java file. The writer is used by JSP compiler. This method allows the Java compiler control where the Java file should be generated so it knows how to handle the input for java compilation accordingly.

public voidinit(org.apache.jasper.JspCompilationContext ctxt, ErrorDispatcher err, boolean suppressLogging)
Initializations

public voidsaveClassFile(java.lang.String className, java.lang.String classFileName)
Save the generated class file to disk, if not already done.

public voidsetClassPath(java.util.List cp)
Java Compiler options.

public voidsetDebug(boolean debug)

public voidsetExtdirs(java.lang.String exts)

public voidsetSourceVM(java.lang.String sourceVM)

public voidsetTargetVM(java.lang.String targetVM)