org.apache.commons.jci.compilers
Class AbstractJavaCompiler
java.lang.Object
org.apache.commons.jci.compilers.AbstractJavaCompiler
- All Implemented Interfaces:
- JavaCompiler
- Direct Known Subclasses:
- EclipseJavaCompiler, GroovyJavaCompiler, JaninoJavaCompiler, RhinoJavaCompiler
public abstract class AbstractJavaCompiler
- extends Object
- implements JavaCompiler
Base class for compiler implementations. Provides just a few
convenience methods.
- Author:
- tcurdt
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
- uses the default compiler settings and the current classloader
- Specified by:
compile
in interface JavaCompiler
compile
public CompilationResult compile(String[] pClazzNames,
ResourceReader pReader,
ResourceStore pStore,
ClassLoader pClassLoader)
- Description copied from interface:
JavaCompiler
- uses the default compiler settings
- Specified by:
compile
in interface JavaCompiler
Copyright © 2004–2013 The Apache Software Foundation. All rights reserved.