public abstract class ImmutableUnconfiguredTargetNode extends Object implements UnconfiguredTargetNode
UnconfiguredTargetNode
.Constructor and Description |
---|
ImmutableUnconfiguredTargetNode() |
Modifier and Type | Method and Description |
---|---|
abstract com.google.common.collect.ImmutableMap<String,Object> |
getAttributes()
Attributes of this node coerced to the types declared in constructor arguments.
|
abstract UnconfiguredBuildTarget |
getBuildTarget()
Build target of this node.
|
abstract com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> |
getCompatibleWith()
List of targets from
compatible_with attribute. |
abstract Optional<UnconfiguredBuildTarget> |
getDefaultTargetPlatform()
Value of
default_target_platform attribute. |
abstract RuleType |
getRuleType()
The type of a rule.
|
abstract com.google.common.collect.ImmutableSet<VisibilityPattern> |
getVisibilityPatterns()
List of patterns from
visibility attribute. |
abstract com.google.common.collect.ImmutableSet<VisibilityPattern> |
getWithinViewPatterns()
List of patterns from
within_view attribute. |
static UnconfiguredTargetNode |
of(UnconfiguredBuildTarget buildTarget,
RuleType ruleType,
com.google.common.collect.ImmutableMap<String,Object> attributes,
com.google.common.collect.ImmutableSet<VisibilityPattern> visibilityPatterns,
com.google.common.collect.ImmutableSet<VisibilityPattern> withinViewPatterns,
Optional<UnconfiguredBuildTarget> defaultTargetPlatform,
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> compatibleWith) |
public abstract UnconfiguredBuildTarget getBuildTarget()
UnconfiguredTargetNode
getBuildTarget
in interface UnconfiguredTargetNode
public abstract RuleType getRuleType()
UnconfiguredTargetNode
getRuleType
in interface UnconfiguredTargetNode
public abstract com.google.common.collect.ImmutableMap<String,Object> getAttributes()
UnconfiguredTargetNode
Note that some of these attributes may require additional processing before they can be stored in a constructor argument. For example, selectable arguments need to be resolved first.
getAttributes
in interface UnconfiguredTargetNode
public abstract com.google.common.collect.ImmutableSet<VisibilityPattern> getVisibilityPatterns()
UnconfiguredTargetNode
visibility
attribute.getVisibilityPatterns
in interface UnconfiguredTargetNode
public abstract com.google.common.collect.ImmutableSet<VisibilityPattern> getWithinViewPatterns()
UnconfiguredTargetNode
within_view
attribute.getWithinViewPatterns
in interface UnconfiguredTargetNode
public abstract Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
UnconfiguredTargetNode
default_target_platform
attribute. Note this attribute only exists for build
targets.getDefaultTargetPlatform
in interface UnconfiguredTargetNode
public abstract com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
UnconfiguredTargetNode
compatible_with
attribute. Note method exists for all rules,
while compatible_with
can be defined only for build rules.getCompatibleWith
in interface UnconfiguredTargetNode
public static UnconfiguredTargetNode of(UnconfiguredBuildTarget buildTarget, RuleType ruleType, com.google.common.collect.ImmutableMap<String,Object> attributes, com.google.common.collect.ImmutableSet<VisibilityPattern> visibilityPatterns, com.google.common.collect.ImmutableSet<VisibilityPattern> withinViewPatterns, Optional<UnconfiguredBuildTarget> defaultTargetPlatform, com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> compatibleWith)