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