public final class JavacFactory extends Object
Constructor and Description |
---|
JavacFactory(java.util.function.Function<TargetConfiguration,JavacProvider> javacProvider) |
Modifier and Type | Method and Description |
---|---|
void |
addParseTimeDeps(com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder,
JvmLibraryArg args,
TargetConfiguration toolchainTargetConfiguration)
Adds the parse time deps required for javac based on the args.
|
Javac |
create(SourcePathRuleFinder ruleFinder,
JvmLibraryArg args,
TargetConfiguration toolchainTargetConfiguration)
Returns either the defautl javac or one created from the provided args.
|
com.google.common.collect.ImmutableSet<BuildRule> |
getBuildDeps(SourcePathRuleFinder ruleFinder,
TargetConfiguration toolchainTargetConfiguration) |
static JavacFactory |
getDefault(ToolchainProvider toolchainProvider)
Creates a JavacFactory for the default Java toolchain.
|
public JavacFactory(java.util.function.Function<TargetConfiguration,JavacProvider> javacProvider)
public Javac create(SourcePathRuleFinder ruleFinder, @Nullable JvmLibraryArg args, TargetConfiguration toolchainTargetConfiguration)
public static JavacFactory getDefault(ToolchainProvider toolchainProvider)
public void addParseTimeDeps(com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder, @Nullable JvmLibraryArg args, TargetConfiguration toolchainTargetConfiguration)
public com.google.common.collect.ImmutableSet<BuildRule> getBuildDeps(SourcePathRuleFinder ruleFinder, TargetConfiguration toolchainTargetConfiguration)