Class Jsr199JavaCompiler
java.lang.Object
org.apache.jasper.compiler.Jsr199JavaCompiler
Invoke Java Compiler per JSR 199, using in-memory storage for both the
input Java source and the generated bytecodes.
- Author:
- Kin-man Chung
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CharArrayWriterprotected ArrayList<Jsr199JavaCompiler.BytecodeFile> protected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoJavaFile(boolean keep) longprotected JavaFileManagergetJavaWriter(String javaFileName, String javaEncoding) protected JavaFileObjectgetOutputFile(String className, URI uri) voidinit(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging) voidrelease()voidsaveClassFile(String className, String classFileName) voidsetClassPath(List<File> path) voidsetDebug(boolean debug) voidsetExtdirs(String exts) voidsetSourceVM(String sourceVM) voidsetTargetVM(String targetVM)
-
Field Details
-
cpath
-
classFiles
-
options
-
charArrayWriter
-
javaFileName
-
javaEncoding
-
-
Constructor Details
-
Jsr199JavaCompiler
public Jsr199JavaCompiler()
-
-
Method Details
-
init
public void init(JspCompilationContext ctxt, ErrorDispatcher errDispatcher, boolean suppressLogging) -
release
public void release() -
setClassPath
-
setExtdirs
-
setSourceVM
-
setTargetVM
-
saveClassFile
-
doJavaFile
- Throws:
JasperException
-
setDebug
public void setDebug(boolean debug) -
getJavaWriter
-
getClassLastModified
public long getClassLastModified() -
compile
public JavacErrorDetail[] compile(String className, org.apache.jasper.compiler.Node.Nodes pageNodes) throws JasperException - Throws:
JasperException
-
getOutputFile
-
getJavaFileManager
-