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