com.mysema.util
Class SimpleCompiler

java.lang.Object
  extended by com.mysema.util.SimpleCompiler
All Implemented Interfaces:
JavaCompiler, OptionChecker, Tool

public class SimpleCompiler
extends Object
implements JavaCompiler

Author:
tiwe

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaCompiler
JavaCompiler.CompilationTask
 
Constructor Summary
SimpleCompiler()
           
SimpleCompiler(JavaCompiler compiler, ClassLoader classLoader)
           
 
Method Summary
static String getClassPath(URLClassLoader classLoader)
           
 Set<SourceVersion> getSourceVersions()
           
 StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)
           
 JavaCompiler.CompilationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Iterable<String> options, Iterable<String> classes, Iterable<? extends JavaFileObject> compilationUnits)
           
 int isSupportedOption(String option)
           
 int run(InputStream in, OutputStream out, OutputStream err, String... arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCompiler

public SimpleCompiler()

SimpleCompiler

public SimpleCompiler(JavaCompiler compiler,
                      ClassLoader classLoader)
Method Detail

getClassPath

public static String getClassPath(URLClassLoader classLoader)
                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getSourceVersions

public Set<SourceVersion> getSourceVersions()
Specified by:
getSourceVersions in interface Tool

getStandardFileManager

public StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener,
                                                      Locale locale,
                                                      Charset charset)
Specified by:
getStandardFileManager in interface JavaCompiler

getTask

public JavaCompiler.CompilationTask getTask(Writer out,
                                            JavaFileManager fileManager,
                                            DiagnosticListener<? super JavaFileObject> diagnosticListener,
                                            Iterable<String> options,
                                            Iterable<String> classes,
                                            Iterable<? extends JavaFileObject> compilationUnits)
Specified by:
getTask in interface JavaCompiler

isSupportedOption

public int isSupportedOption(String option)
Specified by:
isSupportedOption in interface OptionChecker

run

public int run(InputStream in,
               OutputStream out,
               OutputStream err,
               String... arguments)
Specified by:
run in interface Tool


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.