Class HaskellPrebuiltLibraryDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.haskell.HaskellPrebuiltLibraryDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class HaskellPrebuiltLibraryDescriptionArg extends Object
Immutable implementation ofHaskellPrebuiltLibraryDescription.AbstractHaskellPrebuiltLibraryDescriptionArg
.Use the builder to create immutable instances:
HaskellPrebuiltLibraryDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HaskellPrebuiltLibraryDescriptionArg.Builder
Builds instances of typeHaskellPrebuiltLibraryDescriptionArg
.
-
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 HaskellPrebuiltLibraryDescriptionArg.Builder
builder()
Creates a builder forHaskellPrebuiltLibraryDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofHaskellPrebuiltLibraryDescriptionArg
that have equal attribute values.com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.com.google.common.collect.ImmutableSortedSet<SourcePath>
getCxxHeaderDirs()
SourcePath
getDb()
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()
com.google.common.collect.ImmutableList<String>
getExportedCompilerFlags()
com.google.common.collect.ImmutableList<String>
getExportedLinkerFlags()
String
getId()
com.google.common.collect.ImmutableList<SourcePath>
getImportDirs()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
String
getName()
Each rule has a namecom.google.common.collect.ImmutableList<SourcePath>
getProfiledStaticLibs()
com.google.common.collect.ImmutableMap<String,SourcePath>
getSharedLibs()
com.google.common.collect.ImmutableList<SourcePath>
getStaticLibs()
String
getVersion()
int
hashCode()
Computes a hash code from attributes:version
,id
,db
,importDirs
,staticLibs
,profiledStaticLibs
,sharedLibs
,exportedLinkerFlags
,exportedCompilerFlags
,cxxHeaderDirs
,enableProfiling
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
.boolean
isEnableProfiling()
String
toString()
Prints the immutable valueHaskellPrebuiltLibraryDescriptionArg
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
-
getVersion
public String getVersion()
- Returns:
- The value of the
version
attribute
-
getId
public String getId()
- Returns:
- The value of the
id
attribute
-
getDb
public SourcePath getDb()
- Returns:
- The value of the
db
attribute
-
getImportDirs
public com.google.common.collect.ImmutableList<SourcePath> getImportDirs()
- Returns:
- The value of the
importDirs
attribute
-
getStaticLibs
public com.google.common.collect.ImmutableList<SourcePath> getStaticLibs()
- Returns:
- The value of the
staticLibs
attribute
-
getProfiledStaticLibs
public com.google.common.collect.ImmutableList<SourcePath> getProfiledStaticLibs()
- Returns:
- The value of the
profiledStaticLibs
attribute
-
getSharedLibs
public com.google.common.collect.ImmutableMap<String,SourcePath> getSharedLibs()
- Returns:
- The value of the
sharedLibs
attribute
-
getExportedLinkerFlags
public com.google.common.collect.ImmutableList<String> getExportedLinkerFlags()
- Returns:
- The value of the
exportedLinkerFlags
attribute
-
getExportedCompilerFlags
public com.google.common.collect.ImmutableList<String> getExportedCompilerFlags()
- Returns:
- The value of the
exportedCompilerFlags
attribute
-
getCxxHeaderDirs
public com.google.common.collect.ImmutableSortedSet<SourcePath> getCxxHeaderDirs()
- Returns:
- The value of the
cxxHeaderDirs
attribute
-
isEnableProfiling
public boolean isEnableProfiling()
- Returns:
- The value of the
enableProfiling
attribute
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
Description copied from interface:BuildRuleArg
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
- 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 interfaceBuildRuleArg
- Returns:
- The value of the
defaultTargetPlatform
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- Returns:
- The value of the
labels
attribute
-
getLicenses
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
- Specified by:
getLicenses
in interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getName
public String getName()
Description copied from interface:ConstructorArg
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
- Returns:
- The value of the
name
attribute
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofHaskellPrebuiltLibraryDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:version
,id
,db
,importDirs
,staticLibs
,profiledStaticLibs
,sharedLibs
,exportedLinkerFlags
,exportedCompilerFlags
,cxxHeaderDirs
,enableProfiling
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
.
-
toString
public String toString()
Prints the immutable valueHaskellPrebuiltLibraryDescriptionArg
with attribute values.
-
builder
public static HaskellPrebuiltLibraryDescriptionArg.Builder builder()
Creates a builder forHaskellPrebuiltLibraryDescriptionArg
.- Returns:
- A new HaskellPrebuiltLibraryDescriptionArg builder
-
-