public interface UnconfiguredTargetNode extends ComputeResult
TargetNode
.
The attributes are coerced from raw data produced by build file parser, but they are not
stored in a structured object as in TargetNode
.
The main purpose of having such nodes is to perform additional processing before storing them in a structured constructor arguments.
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<String,Object> |
getAttributes()
Attributes of this node coerced to the types declared in constructor arguments.
|
UnconfiguredBuildTarget |
getBuildTarget()
Build target of this node.
|
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> |
getCompatibleWith()
List of targets from
compatible_with attribute. |
Optional<UnconfiguredBuildTarget> |
getDefaultTargetPlatform()
Value of
default_target_platform attribute. |
RuleType |
getRuleType()
The type of a rule.
|
com.google.common.collect.ImmutableSet<VisibilityPattern> |
getVisibilityPatterns()
List of patterns from
visibility attribute. |
com.google.common.collect.ImmutableSet<VisibilityPattern> |
getWithinViewPatterns()
List of patterns from
within_view attribute. |
UnconfiguredBuildTarget getBuildTarget()
RuleType getRuleType()
com.google.common.collect.ImmutableMap<String,Object> getAttributes()
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.
com.google.common.collect.ImmutableSet<VisibilityPattern> getVisibilityPatterns()
visibility
attribute.com.google.common.collect.ImmutableSet<VisibilityPattern> getWithinViewPatterns()
within_view
attribute.Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
default_target_platform
attribute. Note this attribute only exists for build
targets.com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
compatible_with
attribute. Note method exists for all rules,
while compatible_with
can be defined only for build rules.