public class BuildConfigFieldsTypeCoercer extends LeafTypeCoercer<BuildConfigFields>
TypeCoercer
that takes a list of strings and transforms it into a BuildConfigFields
. This class takes care of parsing each string, making sure it conforms to the
specification in BuildConfigFields
.TypeCoercer.Traversal
Constructor and Description |
---|
BuildConfigFieldsTypeCoercer() |
Modifier and Type | Method and Description |
---|---|
BuildConfigFields |
coerce(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
TargetConfiguration targetConfiguration,
TargetConfiguration hostConfiguration,
Object object) |
com.google.common.reflect.TypeToken<BuildConfigFields> |
getOutputType() |
coerceToUnconfigured, getUnconfiguredType, hasElementClass, traverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutputAssignableTo, checkUnconfiguredAssignableTo, coerceBoth, concat, supportsConcatenation, unconfiguredToConfiguredCoercionIsIdentity
public com.google.common.reflect.TypeToken<BuildConfigFields> getOutputType()
public BuildConfigFields coerce(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, TargetConfiguration targetConfiguration, TargetConfiguration hostConfiguration, Object object) throws CoerceFailedException
CoerceFailedException
- Input object cannot be coerced into the given type.