public final class BuildTargetMacroTypeCoercer<M extends BuildTargetMacro> extends Object
BuildTarget
arg.Modifier and Type | Class and Description |
---|---|
static class |
BuildTargetMacroTypeCoercer.TargetOrHost
Should target be resolved for host platform or target
|
Constructor and Description |
---|
BuildTargetMacroTypeCoercer(TypeCoercer<UnconfiguredBuildTargetWithOutputs,BuildTargetWithOutputs> buildTargetWithOutputsTypeCoercer,
Class<M> mClass,
BuildTargetMacroTypeCoercer.TargetOrHost targetOrHost,
java.util.function.Function<BuildTargetWithOutputs,M> factory) |
Modifier and Type | Method and Description |
---|---|
M |
coerce(CellNameResolver cellNameResolver,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
TargetConfiguration targetConfiguration,
TargetConfiguration hostConfiguration,
com.google.common.collect.ImmutableList<String> args) |
Class<M> |
getOutputClass() |
boolean |
hasElementClass(Class<?>[] types) |
void |
traverse(CellNameResolver cellRoots,
M macro,
TypeCoercer.Traversal traversal) |
public BuildTargetMacroTypeCoercer(TypeCoercer<UnconfiguredBuildTargetWithOutputs,BuildTargetWithOutputs> buildTargetWithOutputsTypeCoercer, Class<M> mClass, BuildTargetMacroTypeCoercer.TargetOrHost targetOrHost, java.util.function.Function<BuildTargetWithOutputs,M> factory)
public boolean hasElementClass(Class<?>[] types)
public void traverse(CellNameResolver cellRoots, M macro, TypeCoercer.Traversal traversal)
public M coerce(CellNameResolver cellNameResolver, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, TargetConfiguration targetConfiguration, TargetConfiguration hostConfiguration, com.google.common.collect.ImmutableList<String> args) throws CoerceFailedException
CoerceFailedException