Class PythonTestDescriptionArg

    • Method Detail

      • getMainModule

        public Optional<String> getMainModule()
        Returns:
        The value of the mainModule attribute
      • getPlatform

        public Optional<String> getPlatform()
        Returns:
        The value of the platform attribute
      • getCxxPlatform

        public Optional<Flavor> getCxxPlatform()
        Returns:
        The value of the cxxPlatform attribute
      • getExtension

        public Optional<String> getExtension()
        Returns:
        The value of the extension attribute
      • getPreloadDeps

        public com.google.common.collect.ImmutableSet<BuildTarget> getPreloadDeps()
        Returns:
        The value of the preloadDeps attribute
      • getLinkerFlags

        public com.google.common.collect.ImmutableList<StringWithMacros> getLinkerFlags()
        Returns:
        The value of the linkerFlags attribute
      • getNeededCoverage

        public com.google.common.collect.ImmutableList<NeededCoverageSpec> getNeededCoverage()
        Returns:
        The value of the neededCoverage attribute
      • getBuildArgs

        public com.google.common.collect.ImmutableList<StringWithMacros> getBuildArgs()
        Returns:
        The value of the buildArgs attribute
      • getEnv

        public com.google.common.collect.ImmutableMap<String,​StringWithMacros> getEnv()
        Returns:
        The value of the env attribute
      • getAdditionalCoverageTargets

        public com.google.common.collect.ImmutableSet<BuildTarget> getAdditionalCoverageTargets()
        Returns:
        The value of the additionalCoverageTargets attribute
      • getCompile

        public Optional<Boolean> getCompile()
        Returns:
        The value of the compile attribute
      • getContacts

        public com.google.common.collect.ImmutableSortedSet<String> getContacts()
        Specified by:
        getContacts in interface HasContacts
        Returns:
        The value of the contacts attribute
      • getSrcs

        public SourceSortedSet getSrcs()
        Returns:
        The value of the srcs attribute
      • getResources

        public SourceSortedSet getResources()
        Returns:
        The value of the resources attribute
      • getPlatformDeps

        public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
        Returns:
        The value of the platformDeps attribute
      • getBaseModule

        public Optional<String> getBaseModule()
        Returns:
        The value of the baseModule attribute
      • getZipSafe

        public Optional<Boolean> getZipSafe()
        Returns:
        The value of the zipSafe attribute
      • isExcludeDepsFromMergedLinking

        public boolean isExcludeDepsFromMergedLinking()
        Returns:
        The value of the excludeDepsFromMergedLinking attribute
      • getCompatibleWith

        public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
        Description copied from interface: BuildRuleArg
        A list of config_setting a target is compatible with.
        Specified by:
        getCompatibleWith in interface BuildRuleArg
        Returns:
        The value of the compatibleWith attribute
      • getDefaultTargetPlatform

        public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
        Description copied from interface: BuildRuleArg
        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
        Returns:
        The value of the defaultTargetPlatform attribute
      • getLabels

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

        public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
        Specified by:
        getLicenses in interface BuildRuleArg
        Returns:
        The value of the licenses attribute
      • 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:
        The value of the tests attribute
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of PythonTestDescriptionArg 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: mainModule, platform, cxxPlatform, extension, packageStyle, preloadDeps, linkerFlags, neededCoverage, buildArgs, env, additionalCoverageTargets, compile, contacts, runner, specs, testRuleTimeoutMs, srcs, versionedSrcs, platformSrcs, resources, versionedResources, platformResources, platformDeps, baseModule, zipSafe, excludeDepsFromMergedLinking, compatibleWith, defaultTargetPlatform, labels, licenses, name, deps, tests, versionUniverse.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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