public class TargetNodeFactory extends Object implements NodeCopier
Constructor and Description |
---|
TargetNodeFactory(TypeCoercerFactory typeCoercerFactory,
CellNameResolverProvider cellNames) |
TargetNodeFactory(TypeCoercerFactory typeCoercerFactory,
com.facebook.buck.core.model.targetgraph.impl.PathsChecker pathsChecker,
CellNameResolverProvider cellNames) |
TargetNodeFactory(TypeCoercerFactory typeCoercerFactory,
PathTypeCoercer.PathExistenceVerificationMode pathExistenceVerificationMode,
CellNameResolverProvider cellNames) |
Modifier and Type | Method and Description |
---|---|
<T extends ConstructorArg> |
copyNodeWithFlavors(TargetNode<T> originalNode,
com.google.common.collect.ImmutableSet<Flavor> flavors) |
<T extends ConstructorArg,U extends BaseDescription<T>> |
createFromObject(U description,
Object constructorArg,
ProjectFilesystem filesystem,
BuildTarget buildTarget,
DependencyStack dependencyStack,
com.google.common.collect.ImmutableSet<BuildTarget> declaredDeps,
com.google.common.collect.ImmutableSortedSet<BuildTarget> configurationDeps,
com.google.common.collect.ImmutableSet<VisibilityPattern> visibilityPatterns,
com.google.common.collect.ImmutableSet<VisibilityPattern> withinViewPatterns)
This factory method lets the wildcard be bound, so the constructor can be casted to it.
|
boolean |
equals(Object obj) |
int |
hashCode() |
public TargetNodeFactory(TypeCoercerFactory typeCoercerFactory, CellNameResolverProvider cellNames)
public TargetNodeFactory(TypeCoercerFactory typeCoercerFactory, PathTypeCoercer.PathExistenceVerificationMode pathExistenceVerificationMode, CellNameResolverProvider cellNames)
public TargetNodeFactory(TypeCoercerFactory typeCoercerFactory, com.facebook.buck.core.model.targetgraph.impl.PathsChecker pathsChecker, CellNameResolverProvider cellNames)
public <T extends ConstructorArg,U extends BaseDescription<T>> TargetNode<T> createFromObject(U description, Object constructorArg, ProjectFilesystem filesystem, BuildTarget buildTarget, DependencyStack dependencyStack, com.google.common.collect.ImmutableSet<BuildTarget> declaredDeps, com.google.common.collect.ImmutableSortedSet<BuildTarget> configurationDeps, com.google.common.collect.ImmutableSet<VisibilityPattern> visibilityPatterns, com.google.common.collect.ImmutableSet<VisibilityPattern> withinViewPatterns) throws NoSuchBuildTargetException
This does no checking that the type of constructorArg
is correct, since Description
does not hold the Class of the constructor arg.
NoSuchBuildTargetException
public <T extends ConstructorArg> TargetNode<T> copyNodeWithFlavors(TargetNode<T> originalNode, com.google.common.collect.ImmutableSet<Flavor> flavors)
copyNodeWithFlavors
in interface NodeCopier