Package com.google.errorprone
Class BaseErrorProneJavaCompiler
java.lang.Object
com.google.errorprone.BaseErrorProneJavaCompiler
- All Implemented Interfaces:
JavaCompiler
,OptionChecker
,Tool
- Direct Known Subclasses:
ErrorProneJavaCompiler
public class BaseErrorProneJavaCompiler extends Object implements JavaCompiler
An Error Prone compiler that implements
JavaCompiler
.-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.tools.JavaCompiler
JavaCompiler.CompilationTask
-
Constructor Summary
Constructors Constructor Description BaseErrorProneJavaCompiler(ScannerSupplier scannerSupplier)
-
Method Summary
Modifier and Type Method Description 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)
static void
setupMessageBundle(com.sun.tools.javac.util.Context context)
Registers our message bundle.
-
Constructor Details
-
BaseErrorProneJavaCompiler
-
-
Method Details
-
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 interfaceJavaCompiler
-
getStandardFileManager
public StandardJavaFileManager getStandardFileManager(DiagnosticListener<? super JavaFileObject> diagnosticListener, Locale locale, Charset charset)- Specified by:
getStandardFileManager
in interfaceJavaCompiler
-
isSupportedOption
- Specified by:
isSupportedOption
in interfaceOptionChecker
-
run
-
getSourceVersions
- Specified by:
getSourceVersions
in interfaceTool
-
setupMessageBundle
public static void setupMessageBundle(com.sun.tools.javac.util.Context context)Registers our message bundle.
-