public class BuildTargetTypeCoercer extends LeafTypeNewCoercer<UnconfiguredBuildTarget,BuildTarget>
BuildTarget
.TypeCoercer.Traversal
Constructor and Description |
---|
BuildTargetTypeCoercer(TypeCoercer<UnconfiguredBuildTarget,UnconfiguredBuildTarget> unconfiguredBuildTargetTypeCoercer) |
Modifier and Type | Method and Description |
---|---|
BuildTarget |
coerce(CellNameResolver cellRoots,
ProjectFilesystem alsoUnused,
ForwardRelativePath pathRelativeToProjectRoot,
TargetConfiguration targetConfiguration,
TargetConfiguration hostConfiguration,
UnconfiguredBuildTarget object) |
UnconfiguredBuildTarget |
coerceToUnconfigured(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
Object object)
Coerce to a value for unconfigured graph.
|
com.google.common.reflect.TypeToken<BuildTarget> |
getOutputType() |
com.google.common.reflect.TypeToken<UnconfiguredBuildTarget> |
getUnconfiguredType() |
hasElementClass, traverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutputAssignableTo, checkUnconfiguredAssignableTo, coerceBoth, concat, supportsConcatenation, unconfiguredToConfiguredCoercionIsIdentity
public BuildTargetTypeCoercer(TypeCoercer<UnconfiguredBuildTarget,UnconfiguredBuildTarget> unconfiguredBuildTargetTypeCoercer)
public com.google.common.reflect.TypeToken<BuildTarget> getOutputType()
public com.google.common.reflect.TypeToken<UnconfiguredBuildTarget> getUnconfiguredType()
public UnconfiguredBuildTarget coerceToUnconfigured(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, Object object) throws CoerceFailedException
TypeCoercer
CoerceFailedException
public BuildTarget coerce(CellNameResolver cellRoots, ProjectFilesystem alsoUnused, ForwardRelativePath pathRelativeToProjectRoot, TargetConfiguration targetConfiguration, TargetConfiguration hostConfiguration, UnconfiguredBuildTarget object) throws CoerceFailedException
CoerceFailedException
- Input object cannot be coerced into the given type.