Package com.facebook.buck.swift
Class SwiftLibraryDescriptionArg
- java.lang.Object
-
- com.facebook.buck.swift.SwiftLibraryDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
,HasSrcs
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class SwiftLibraryDescriptionArg extends Object
Immutable implementation ofSwiftLibraryDescription.AbstractSwiftLibraryDescriptionArg
.Use the builder to create immutable instances:
SwiftLibraryDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SwiftLibraryDescriptionArg.Builder
Builds instances of typeSwiftLibraryDescriptionArg
.
-
Field Summary
-
Fields inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
DEFAULT_TARGET_PLATFORM_PARAM_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SwiftLibraryDescriptionArg.Builder
builder()
Creates a builder forSwiftLibraryDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofSwiftLibraryDescriptionArg
that have equal attribute values.Optional<SourcePath>
getBridgingHeader()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.com.google.common.collect.ImmutableList<StringWithMacros>
getCompilerFlags()
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.com.google.common.collect.ImmutableSortedSet<BuildTarget>
getDeps()
Optional<Boolean>
getEnableObjcInterop()
com.google.common.collect.ImmutableSortedSet<FrameworkPath>
getFrameworks()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSortedSet<FrameworkPath>
getLibraries()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
Optional<String>
getModuleName()
String
getName()
Each rule has a nameOptional<NativeLinkableGroup.Linkage>
getPreferredLinkage()
Optional<String>
getSoname()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getSrcs()
Optional<Pattern>
getSupportedPlatformsRegex()
Optional<String>
getTargetSdkVersion()
The minimum OS version for which this target should be built.Optional<String>
getVersion()
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
.String
toString()
Prints the immutable valueSwiftLibraryDescriptionArg
with attribute values.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
labelsContainsAnyOf
-
-
-
-
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
-
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
-
getBridgingHeader
public Optional<SourcePath> getBridgingHeader()
- Returns:
- The value of the
bridgingHeader
attribute
-
getPreferredLinkage
public Optional<NativeLinkableGroup.Linkage> getPreferredLinkage()
- Returns:
- The value of the
preferredLinkage
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 interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- 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 interfaceBuildRuleArg
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
-
getName
public String getName()
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
getSrcs
public com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofSwiftLibraryDescriptionArg
that have equal attribute values.
-
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
.
-
toString
public String toString()
Prints the immutable valueSwiftLibraryDescriptionArg
with attribute values.
-
builder
public static SwiftLibraryDescriptionArg.Builder builder()
Creates a builder forSwiftLibraryDescriptionArg
.- Returns:
- A new SwiftLibraryDescriptionArg builder
-
-