Class ImmutableDefaultInfo

    • Constructor Detail

      • ImmutableDefaultInfo

        public ImmutableDefaultInfo​(com.google.devtools.build.lib.syntax.SkylarkDict<String,​Set<Artifact>> namedOutputs,
                                    Iterable<? extends Artifact> defaultOutputs)
        Construct a new immutable DefaultInfo instance.
        Parameters:
        namedOutputs - The value for the namedOutputs attribute
        defaultOutputs - The value for the defaultOutputs 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 class DefaultInfo
        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 class DefaultInfo
        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 of ImmutableDefaultInfo that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: namedOutputs, defaultOutputs.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value DefaultInfo with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value