C
- configured collection typeD
- unconfigured collection typeT
- configured collection element typeU
- unconfigured collection element typepublic abstract class CollectionTypeCoercer<D extends com.google.common.collect.ImmutableCollection<U>,C extends com.google.common.collect.ImmutableCollection<T>,U,T> extends Object implements TypeCoercer<D,C>
ImmutableCollection
subclasses coercers.TypeCoercer.Traversal
Modifier and Type | Field and Description |
---|---|
protected TypeCoercer<U,T> |
elementTypeCoercer |
Modifier and Type | Method and Description |
---|---|
protected void |
fillConfigured(CellNameResolver cellNameResolver,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
TargetConfiguration targetConfiguration,
TargetConfiguration hostConfiguration,
com.google.common.collect.ImmutableCollection.Builder<T> builder,
D object)
Helper method to add coerced elements to the builder.
|
protected void |
fillUnconfigured(CellNameResolver cellNameResolver,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
com.google.common.collect.ImmutableCollection.Builder<U> builder,
Object object)
Helper method to add coerced elements to the builder.
|
boolean |
hasElementClass(Class<?>... types)
Returns whether the leaf nodes of this type coercer outputs value that is an instance of the
given class or its subclasses.
|
void |
traverse(CellNameResolver cellRoots,
C object,
TypeCoercer.Traversal traversal)
Traverse an object guided by this TypeCoercer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutputAssignableTo, checkUnconfiguredAssignableTo, coerce, coerceBoth, coerceToUnconfigured, concat, getOutputType, getUnconfiguredType, supportsConcatenation, unconfiguredToConfiguredCoercionIsIdentity
protected final TypeCoercer<U,T> elementTypeCoercer
public boolean hasElementClass(Class<?>... types)
TypeCoercer
hasElementClass
in interface TypeCoercer<D extends com.google.common.collect.ImmutableCollection<U>,C extends com.google.common.collect.ImmutableCollection<T>>
public void traverse(CellNameResolver cellRoots, C object, TypeCoercer.Traversal traversal)
TypeCoercer
#{link Traversal#traverse} function will be called once for the object. If the object is a collection or map, it will also recursively traverse all elements of the map.
protected void fillUnconfigured(CellNameResolver cellNameResolver, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, com.google.common.collect.ImmutableCollection.Builder<U> builder, Object object) throws CoerceFailedException
CoerceFailedException
protected void fillConfigured(CellNameResolver cellNameResolver, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, TargetConfiguration targetConfiguration, TargetConfiguration hostConfiguration, com.google.common.collect.ImmutableCollection.Builder<T> builder, D object) throws CoerceFailedException
CoerceFailedException