Class SwiftToolchainDescriptionArg

    • Method Detail

      • getSwiftc

        public SourcePath getSwiftc()
        Swift compiler binary.
      • getSwiftcFlags

        public com.google.common.collect.ImmutableList<String> getSwiftcFlags()
        Flags for Swift compiler.
      • getSwiftStdlibTool

        public Optional<SourcePath> getSwiftStdlibTool()
        Swift stdlib tool binary.
      • getSwiftStdlibToolFlags

        public com.google.common.collect.ImmutableList<String> getSwiftStdlibToolFlags()
        Flags for Swift stdlib tool.
      • getRuntimePathsForBundling

        public com.google.common.collect.ImmutableList<SourcePath> getRuntimePathsForBundling()
        Runtime paths for bundling.
      • getRuntimePathsForLinking

        public com.google.common.collect.ImmutableList<SourcePath> getRuntimePathsForLinking()
        Runtime paths for linking.
      • getStaticRuntimePaths

        public com.google.common.collect.ImmutableList<SourcePath> getStaticRuntimePaths()
        Static runtime paths.
      • getRuntimeRunPaths

        public com.google.common.collect.ImmutableList<SourcePath> getRuntimeRunPaths()
        Runtime run paths.
      • 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
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of SwiftToolchainDescriptionArg 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: swiftc, swiftcFlags, swiftStdlibTool, swiftStdlibToolFlags, runtimePathsForBundling, runtimePathsForLinking, staticRuntimePaths, runtimeRunPaths, licenses, labels, defaultTargetPlatform, compatibleWith, name.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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