当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
AbstractJavaCompiler (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.apache.commons.jci.compilers
Class AbstractJavaCompiler
java.lang.Object
org.apache.commons.jci.compilers.AbstractJavaCompiler
- All Implemented Interfaces:
- JavaCompiler
- Direct Known Subclasses:
- EclipseJavaCompiler, JaninoJavaCompiler
public abstract class AbstractJavaCompiler
- extends Object
- implements JavaCompiler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
problemHandler
protected CompilationProblemHandler problemHandler
AbstractJavaCompiler
public AbstractJavaCompiler()
setCompilationProblemHandler
public void setCompilationProblemHandler(CompilationProblemHandler pHandler)
- Description copied from interface:
JavaCompiler
- Set the the handler that gets the notification of an error
or warning as soon as this information is available from
the compiler.
Note: Some compilers might not support this feature.
- Specified by:
setCompilationProblemHandler
in interface JavaCompiler
compile
public CompilationResult compile(String[] pClazzNames,
ResourceReader pReader,
ResourceStore pStore)
- Description copied from interface:
JavaCompiler
- Compiles the java resources "some/path/to/MyJava.java"
read through the ResourceReader and then stores the resulting
classes in the ResourceStore under "some/path/to/MyJava.class".
Note: As these are resource path you always have to use "/"
The result of the compilation run including detailed error
information is returned as CompilationResult. If you need to
get notified already during the compilation process you can
register a CompilationProblemHandler.
Note: Not all compilers might support this notification mechanism.
- Specified by:
compile
in interface JavaCompiler
- Returns:
- always a CompilationResult
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.