org.eclipse.jdt.internal.compiler.tool
Class EclipseCompiler

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.tool.EclipseCompiler
All Implemented Interfaces:
JavaCompiler, OptionChecker, Tool

public class EclipseCompiler
extends Object
implements JavaCompiler

Implementation of a batch compiler that supports the jsr199


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaCompiler
JavaCompiler.CompilationTask
 
Field Summary
 DiagnosticListener<? super JavaFileObject> diagnosticListener
           
 
Constructor Summary
EclipseCompiler()
           
 
Method Summary
 Set<SourceVersion> getSourceVersions()
           
 StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> someDiagnosticListener, Locale locale, Charset charset)
           
 JavaCompiler.CompilationTask getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> someDiagnosticListener, 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
 

Field Detail

diagnosticListener

public DiagnosticListener<? super JavaFileObject> diagnosticListener
Constructor Detail

EclipseCompiler

public EclipseCompiler()
Method Detail

getSourceVersions

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

getStandardFileManager

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

getTask

public JavaCompiler.CompilationTask getTask(Writer out,
                                            JavaFileManager fileManager,
                                            DiagnosticListener<? super JavaFileObject> someDiagnosticListener,
                                            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 © 2012. All Rights Reserved.