org.apache.commons.jci.compilers
Class AbstractJavaCompiler

java.lang.Object
  extended by 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

Field Summary
protected  CompilationProblemHandler problemHandler
           
 
Constructor Summary
AbstractJavaCompiler()
           
 
Method Summary
 CompilationResult compile(String[] pClazzNames, ResourceReader pReader, ResourceStore pStore)
          uses the default compiler settings and the current classloader
 CompilationResult compile(String[] pClazzNames, ResourceReader pReader, ResourceStore pStore, ClassLoader pClassLoader)
          uses the default compiler settings
 void setCompilationProblemHandler(CompilationProblemHandler pHandler)
          Set the the handler that gets the notification of an error or warning as soon as this information is available from the compiler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jci.compilers.JavaCompiler
compile, createDefaultSettings
 

Field Detail

problemHandler

protected CompilationProblemHandler problemHandler
Constructor Detail

AbstractJavaCompiler

public AbstractJavaCompiler()
Method Detail

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.