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, traverseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckOutputAssignableTo, checkUnconfiguredAssignableTo, coerceBoth, concat, supportsConcatenation, unconfiguredToConfiguredCoercionIsIdentitypublic 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
TypeCoercerCoerceFailedExceptionpublic 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.