Class JavaBinaryDescriptionArg

    • Method Detail

      • getMainClass

        public Optional<String> getMainClass()
        Returns:
        The value of the mainClass attribute
      • getManifestFile

        public Optional<SourcePath> getManifestFile()
        Returns:
        The value of the manifestFile attribute
      • getMergeManifests

        public Optional<Boolean> getMergeManifests()
        Returns:
        The value of the mergeManifests attribute
      • getDisallowAllDuplicates

        public Optional<Boolean> getDisallowAllDuplicates()
        Returns:
        The value of the disallowAllDuplicates attribute
      • getMetaInfDirectory

        public Optional<Path> getMetaInfDirectory()
        Returns:
        The value of the metaInfDirectory attribute
      • getBlacklist

        public com.google.common.collect.ImmutableSet<Pattern> getBlacklist()
        Returns:
        The value of the blacklist attribute
      • getDefaultCxxPlatform

        public Optional<Flavor> getDefaultCxxPlatform()
        Returns:
        The value of the defaultCxxPlatform attribute
      • getLicenses

        public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
        Specified by:
        getLicenses in interface BuildRuleArg
        Returns:
        The value of the licenses attribute
      • getLabels

        public com.google.common.collect.ImmutableSortedSet<String> getLabels()
        Specified by:
        getLabels in interface BuildRuleArg
        Returns:
        The value of the labels attribute
      • getDefaultTargetPlatform

        public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
        The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.

        The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.

        Specified by:
        getDefaultTargetPlatform in interface BuildRuleArg
      • getDeps

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
        Specified by:
        getDeps in interface HasDeclaredDeps
        Returns:
        The value of the deps attribute
      • getTests

        public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
        Specified by:
        getTests in interface HasTests
        Returns:
        A list of tests of this target.
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of JavaBinaryDescriptionArg 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: mainClass, manifestFile, mergeManifests, disallowAllDuplicates, metaInfDirectory, blacklist, defaultCxxPlatform, licenses, labels, defaultTargetPlatform, compatibleWith, name, deps, tests.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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