public class ConstraintBasedPlatform extends Object implements NamedPlatform
Platform that has a fixed set of constraints.| Constructor and Description |
|---|
ConstraintBasedPlatform(BuildTarget buildTarget,
com.google.common.collect.ImmutableSet<ConstraintValue> constraintValues) |
| Modifier and Type | Method and Description |
|---|---|
BuildTarget |
getBuildTarget()
Build target used to define this platform
|
com.google.common.collect.ImmutableSet<ConstraintValue> |
getConstraintValues() |
boolean |
matchesAll(Collection<ConstraintValue> constraintValues,
DependencyStack dependencyStack)
A platform matches the given constraints when these constraints are present in the platform
constraints (platform constraints is a superset of the provided constraints).
|
String |
toString() |
public ConstraintBasedPlatform(BuildTarget buildTarget, com.google.common.collect.ImmutableSet<ConstraintValue> constraintValues)
public boolean matchesAll(Collection<ConstraintValue> constraintValues, DependencyStack dependencyStack)
matchesAll in interface Platformtrue if the current platform matches the provided constraints.public BuildTarget getBuildTarget()
NamedPlatformgetBuildTarget in interface NamedPlatformplatform rule where this platform is declared.public com.google.common.collect.ImmutableSet<ConstraintValue> getConstraintValues()