Package com.facebook.buck.features.go
Class GoBinaryDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.go.GoBinaryDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
,HasSrcs
,HasGoLinkable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class GoBinaryDescriptionArg extends Object
Immutable implementation ofGoBinaryDescription.AbstractGoBinaryDescriptionArg
.Use the builder to create immutable instances:
GoBinaryDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoBinaryDescriptionArg.Builder
Builds instances of typeGoBinaryDescriptionArg
.
-
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 GoBinaryDescriptionArg.Builder
builder()
Creates a builder forGoBinaryDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofGoBinaryDescriptionArg
that have equal attribute values.com.google.common.collect.ImmutableList<String>
getAssemblerFlags()
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()
com.google.common.collect.ImmutableList<String>
getExternalLinkerFlags()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
com.google.common.collect.ImmutableList<String>
getLinkerFlags()
Optional<com.facebook.buck.features.go.GoLinkStep.LinkMode>
getLinkMode()
Optional<Linker.LinkableDepType>
getLinkStyle()
String
getName()
Each rule has a nameOptional<Flavor>
getPlatform()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getResources()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getSrcs()
int
hashCode()
Computes a hash code from attributes:compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
,srcs
,platform
,linkStyle
,linkMode
,compilerFlags
,assemblerFlags
,linkerFlags
,externalLinkerFlags
,resources
.String
toString()
Prints the immutable valueGoBinaryDescriptionArg
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
-
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
-
getSrcs
public com.google.common.collect.ImmutableSortedSet<SourcePath> getSrcs()
-
getPlatform
public Optional<Flavor> getPlatform()
- Specified by:
getPlatform
in interfaceHasGoLinkable
- Returns:
- The value of the
platform
attribute
-
getLinkStyle
public Optional<Linker.LinkableDepType> getLinkStyle()
- Specified by:
getLinkStyle
in interfaceHasGoLinkable
- Returns:
- The value of the
linkStyle
attribute
-
getLinkMode
public Optional<com.facebook.buck.features.go.GoLinkStep.LinkMode> getLinkMode()
- Specified by:
getLinkMode
in interfaceHasGoLinkable
- Returns:
- The value of the
linkMode
attribute
-
getCompilerFlags
public com.google.common.collect.ImmutableList<String> getCompilerFlags()
- Specified by:
getCompilerFlags
in interfaceHasGoLinkable
- Returns:
- The value of the
compilerFlags
attribute
-
getAssemblerFlags
public com.google.common.collect.ImmutableList<String> getAssemblerFlags()
- Specified by:
getAssemblerFlags
in interfaceHasGoLinkable
- Returns:
- The value of the
assemblerFlags
attribute
-
getLinkerFlags
public com.google.common.collect.ImmutableList<String> getLinkerFlags()
- Specified by:
getLinkerFlags
in interfaceHasGoLinkable
- Returns:
- The value of the
linkerFlags
attribute
-
getExternalLinkerFlags
public com.google.common.collect.ImmutableList<String> getExternalLinkerFlags()
- Specified by:
getExternalLinkerFlags
in interfaceHasGoLinkable
- Returns:
- The value of the
externalLinkerFlags
attribute
-
getResources
public com.google.common.collect.ImmutableSortedSet<SourcePath> getResources()
- Specified by:
getResources
in interfaceHasGoLinkable
- Returns:
- The value of the
resources
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofGoBinaryDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,deps
,srcs
,platform
,linkStyle
,linkMode
,compilerFlags
,assemblerFlags
,linkerFlags
,externalLinkerFlags
,resources
.
-
toString
public String toString()
Prints the immutable valueGoBinaryDescriptionArg
with attribute values.
-
builder
public static GoBinaryDescriptionArg.Builder builder()
Creates a builder forGoBinaryDescriptionArg
.- Returns:
- A new GoBinaryDescriptionArg builder
-
-