Class HaskellGhciDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.haskell.HaskellGhciDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
,HasDepsQuery
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class HaskellGhciDescriptionArg extends Object
Immutable implementation ofHaskellGhciDescription.AbstractHaskellGhciDescriptionArg
.Use the builder to create immutable instances:
HaskellGhciDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HaskellGhciDescriptionArg.Builder
Builds instances of typeHaskellGhciDescriptionArg
.
-
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 Default Methods Modifier and Type Method Description static HaskellGhciDescriptionArg.Builder
builder()
Creates a builder forHaskellGhciDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofHaskellGhciDescriptionArg
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.ImmutableList<String>
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<Query>
getDepsQuery()
com.google.common.collect.ImmutableList<SourcePath>
getExtraScriptTemplates()
Optional<BuildTarget>
getGhciBinDep()
Optional<SourcePath>
getGhciInit()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
com.google.common.collect.ImmutableList<StringWithMacros>
getLinkerFlags()
String
getName()
Each rule has a nameOptional<Flavor>
getPlatform()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>>
getPlatformDeps()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>>
getPlatformPreloadDeps()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getPreloadDeps()
SourceSortedSet
getSrcs()
int
hashCode()
Computes a hash code from attributes:srcs
,compilerFlags
,linkerFlags
,platformDeps
,enableProfiling
,ghciBinDep
,ghciInit
,platform
,extraScriptTemplates
,preloadDeps
,platformPreloadDeps
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,depsQuery
,deps
.boolean
isEnableProfiling()
String
toString()
Prints the immutable valueHaskellGhciDescriptionArg
with attribute values.default HaskellGhciDescriptionArg
withDepsQuery(Query query)
-
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
-
getSrcs
public SourceSortedSet getSrcs()
- Returns:
- The value of the
srcs
attribute
-
getCompilerFlags
public com.google.common.collect.ImmutableList<String> getCompilerFlags()
- Returns:
- The value of the
compilerFlags
attribute
-
getLinkerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getLinkerFlags()
- Returns:
- The value of the
linkerFlags
attribute
-
getPlatformDeps
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformDeps()
- Returns:
- The value of the
platformDeps
attribute
-
isEnableProfiling
public boolean isEnableProfiling()
- Returns:
- The value of the
enableProfiling
attribute
-
getGhciBinDep
public Optional<BuildTarget> getGhciBinDep()
- Returns:
- The value of the
ghciBinDep
attribute
-
getGhciInit
public Optional<SourcePath> getGhciInit()
- Returns:
- The value of the
ghciInit
attribute
-
getExtraScriptTemplates
public com.google.common.collect.ImmutableList<SourcePath> getExtraScriptTemplates()
- Returns:
- The value of the
extraScriptTemplates
attribute
-
getPreloadDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getPreloadDeps()
- Returns:
- The value of the
preloadDeps
attribute
-
getPlatformPreloadDeps
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getPlatformPreloadDeps()
- Returns:
- The value of the
platformPreloadDeps
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
-
getDepsQuery
public Optional<Query> getDepsQuery()
- Specified by:
getDepsQuery
in interfaceHasDepsQuery
- Returns:
- The value of the
depsQuery
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 ofHaskellGhciDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:srcs
,compilerFlags
,linkerFlags
,platformDeps
,enableProfiling
,ghciBinDep
,ghciInit
,platform
,extraScriptTemplates
,preloadDeps
,platformPreloadDeps
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,depsQuery
,deps
.
-
toString
public String toString()
Prints the immutable valueHaskellGhciDescriptionArg
with attribute values.
-
builder
public static HaskellGhciDescriptionArg.Builder builder()
Creates a builder forHaskellGhciDescriptionArg
.- Returns:
- A new HaskellGhciDescriptionArg builder
-
withDepsQuery
public default HaskellGhciDescriptionArg withDepsQuery(Query query)
- Specified by:
withDepsQuery
in interfaceHasDepsQuery
-
-