Class SwiftLibraryDescriptionArg

    • Method Detail

      • getModuleName

        public Optional<String> getModuleName()
        Returns:
        The value of the moduleName attribute
      • getCompilerFlags

        public com.google.common.collect.ImmutableList<StringWithMacros> getCompilerFlags()
        Returns:
        The value of the compilerFlags attribute
      • getVersion

        public Optional<String> getVersion()
        Returns:
        The value of the version attribute
      • getFrameworks

        public com.google.common.collect.ImmutableSortedSet<FrameworkPath> getFrameworks()
        Returns:
        The value of the frameworks attribute
      • getLibraries

        public com.google.common.collect.ImmutableSortedSet<FrameworkPath> getLibraries()
        Returns:
        The value of the libraries attribute
      • getEnableObjcInterop

        public Optional<Boolean> getEnableObjcInterop()
        Returns:
        The value of the enableObjcInterop attribute
      • getSupportedPlatformsRegex

        public Optional<Pattern> getSupportedPlatformsRegex()
        Returns:
        The value of the supportedPlatformsRegex attribute
      • getSoname

        public Optional<String> getSoname()
        Returns:
        The value of the soname attribute
      • getBridgingHeader

        public Optional<SourcePath> getBridgingHeader()
        Returns:
        The value of the bridgingHeader attribute
      • getTargetSdkVersion

        public Optional<String> getTargetSdkVersion()
        The minimum OS version for which this target should be built. If set, this will override the config-level option.
      • 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
      • getSrcs

        public com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
        Specified by:
        getSrcs in interface HasSrcs
        Returns:
        The value of the srcs attribute
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of SwiftLibraryDescriptionArg 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: moduleName, compilerFlags, version, frameworks, libraries, enableObjcInterop, supportedPlatformsRegex, soname, bridgingHeader, preferredLinkage, targetSdkVersion, licenses, labels, defaultTargetPlatform, compatibleWith, name, deps, srcs.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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