public abstract class JavacOptions extends Object implements AddsToRuleKey
Modifier and Type | Class and Description |
---|---|
static class |
JavacOptions.Builder |
static class |
JavacOptions.SpoolMode
The method in which the compiler output is spooled.
|
Constructor and Description |
---|
JavacOptions() |
@Value.Default public JavacOptions.SpoolMode getSpoolMode()
@Value.Default protected boolean isProductionBuild()
@Value.Default protected boolean isVerbose()
@Value.Default public JavacLanguageLevelOptions getLanguageLevelOptions()
@Value.Default public JavacPluginParams getJavaAnnotationProcessorParams()
@Value.Default public JavacPluginParams getStandardJavacPluginParams()
protected abstract Map<String,com.google.common.collect.ImmutableList<PathSourcePath>> getSourceToBootclasspath()
protected boolean isDebug()
@Value.Default public boolean trackClassUsage()
@Value.Default public boolean trackJavacPhaseEvents()
public void validateOptions(java.util.function.Function<String,Boolean> classpathChecker) throws IOException
IOException
public JavacOptions withBootclasspathFromContext(ExtraClasspathProvider extraClasspathProvider)
public JavacOptions withExtraArguments(com.google.common.collect.ImmutableList<String> extraArguments)
public JavacOptions withLanguageLevelOptions(JavacLanguageLevelOptions languageLevelOptions)
public JavacOptions withBootclasspath(@Nullable String bootclasspath)
public JavacOptions withJavaAnnotationProcessorParams(JavacPluginParams javaAnnotationProcessorParams)
public com.google.common.collect.ImmutableList<SourcePath> getSourceLevelBootclasspath()
SourcePaths
for a particular source level extracted from getSourceToBootclasspath()
or empty list if bootclasspath for a this source level is not
defined.public void appendOptionsTo(OptionsConsumer optionsConsumer, SourcePathResolverAdapter pathResolver, ProjectFilesystem filesystem)
public static JavacOptions.Builder builder(JavacOptions options)
public static JavacOptions.Builder builder()