Class ImmutableDefaultInfo
- java.lang.Object
-
- com.facebook.buck.core.starlark.compatible.BuckStarlarkStructObject
-
- com.facebook.buck.core.rules.providers.impl.BuiltInProviderInfo<DefaultInfo>
-
- com.facebook.buck.core.rules.providers.lib.DefaultInfo
-
- com.facebook.buck.core.rules.providers.lib.ImmutableDefaultInfo
-
- All Implemented Interfaces:
ProviderInfo<DefaultInfo>
,SkylarkProviderInfo
,com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable
,com.google.devtools.build.lib.skylarkinterface.SkylarkValue
,com.google.devtools.build.lib.syntax.ClassObject
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDefaultInfo extends DefaultInfo
Immutable implementation ofDefaultInfo
.Use the static factory method to create immutable instances:
new ImmutableDefaultInfo()
.
-
-
Field Summary
-
Fields inherited from class com.facebook.buck.core.rules.providers.lib.DefaultInfo
PROVIDER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSet<Artifact>
defaultOutputs()
boolean
equals(Object another)
This instance is equal to all instances ofImmutableDefaultInfo
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:namedOutputs
,defaultOutputs
.com.google.devtools.build.lib.syntax.SkylarkDict<String,Set<Artifact>>
namedOutputs()
These are the named outputs of a rule.String
toString()
Prints the immutable valueDefaultInfo
with attribute values.-
Methods inherited from class com.facebook.buck.core.rules.providers.impl.BuiltInProviderInfo
getDeclaredClass, getProvider, getProviderInfo, isImmutable
-
Methods inherited from class com.facebook.buck.core.starlark.compatible.BuckStarlarkStructObject
getErrorMessageForUnknownField, getFieldNames, getMethods, getValue, repr
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
ImmutableDefaultInfo
public ImmutableDefaultInfo(com.google.devtools.build.lib.syntax.SkylarkDict<String,Set<Artifact>> namedOutputs, Iterable<? extends Artifact> defaultOutputs)
Construct a new immutableDefaultInfo
instance.- Parameters:
namedOutputs
- The value for thenamedOutputs
attributedefaultOutputs
- The value for thedefaultOutputs
attribute
-
-
Method Detail
-
namedOutputs
public com.google.devtools.build.lib.syntax.SkylarkDict<String,Set<Artifact>> namedOutputs()
These are the named outputs of a rule. Named outputs are a mapping of String identifiers to a set of outputs of the rule that the name maps to.- Specified by:
namedOutputs
in classDefaultInfo
- Returns:
- a map of a String, which is the named identifier to a set of outputs.
-
defaultOutputs
public com.google.common.collect.ImmutableSet<Artifact> defaultOutputs()
- Specified by:
defaultOutputs
in classDefaultInfo
- Returns:
- the set of default outputs built by the rule if no output selection is specified.
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableDefaultInfo
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:namedOutputs
,defaultOutputs
.
-
-