Package com.facebook.buck.features.go
Class GoTestDescriptionArg
- java.lang.Object
-
- com.facebook.buck.features.go.GoTestDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasContacts
,HasDeclaredDeps
,HasSrcs
,HasTestTimeout
,HasTestRunner
,HasGoLinkable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class GoTestDescriptionArg extends Object
Immutable implementation ofGoTestDescription.AbstractGoTestDescriptionArg
.Use the builder to create immutable instances:
GoTestDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GoTestDescriptionArg.Builder
Builds instances of typeGoTestDescriptionArg
.
-
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 GoTestDescriptionArg.Builder
builder()
Creates a builder forGoTestDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofGoTestDescriptionArg
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()
com.google.common.collect.ImmutableSortedSet<String>
getContacts()
Optional<com.facebook.buck.features.go.GoTestCoverStep.Mode>
getCoverageMode()
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.ImmutableMap<String,StringWithMacros>
getEnv()
com.google.common.collect.ImmutableList<String>
getExternalLinkerFlags()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
Optional<BuildTarget>
getLibrary()
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<String>
getPackageName()
Optional<Flavor>
getPlatform()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getResources()
Optional<BuildTarget>
getRunner()
boolean
getRunTestSeparately()
Optional<TestRunnerSpec>
getSpecs()
com.google.common.collect.ImmutableSortedSet<SourcePath>
getSrcs()
Optional<Long>
getTestRuleTimeoutMs()
int
hashCode()
Computes a hash code from attributes:library
,packageName
,coverageMode
,env
,runTestSeparately
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,contacts
,deps
,srcs
,runner
,specs
,testRuleTimeoutMs
,platform
,linkStyle
,linkMode
,compilerFlags
,assemblerFlags
,linkerFlags
,externalLinkerFlags
,resources
.String
toString()
Prints the immutable valueGoTestDescriptionArg
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
-
getLibrary
public Optional<BuildTarget> getLibrary()
- Returns:
- The value of the
library
attribute
-
getPackageName
public Optional<String> getPackageName()
- Returns:
- The value of the
packageName
attribute
-
getCoverageMode
public Optional<com.facebook.buck.features.go.GoTestCoverStep.Mode> getCoverageMode()
- Returns:
- The value of the
coverageMode
attribute
-
getEnv
public com.google.common.collect.ImmutableMap<String,StringWithMacros> getEnv()
- Returns:
- The value of the
env
attribute
-
getRunTestSeparately
public boolean getRunTestSeparately()
- Returns:
- The value of the
runTestSeparately
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
-
getContacts
public com.google.common.collect.ImmutableSortedSet<String> getContacts()
- Specified by:
getContacts
in interfaceHasContacts
- Returns:
- The value of the
contacts
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()
-
getRunner
public Optional<BuildTarget> getRunner()
- Specified by:
getRunner
in interfaceHasTestRunner
- Returns:
- The value of the
runner
attribute
-
getSpecs
public Optional<TestRunnerSpec> getSpecs()
- Specified by:
getSpecs
in interfaceHasTestRunner
- Returns:
- The value of the
specs
attribute
-
getTestRuleTimeoutMs
public Optional<Long> getTestRuleTimeoutMs()
- Specified by:
getTestRuleTimeoutMs
in interfaceHasTestTimeout
- Returns:
- The value of the
testRuleTimeoutMs
attribute
-
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 ofGoTestDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:library
,packageName
,coverageMode
,env
,runTestSeparately
,compatibleWith
,defaultTargetPlatform
,labels
,licenses
,name
,contacts
,deps
,srcs
,runner
,specs
,testRuleTimeoutMs
,platform
,linkStyle
,linkMode
,compilerFlags
,assemblerFlags
,linkerFlags
,externalLinkerFlags
,resources
.
-
toString
public String toString()
Prints the immutable valueGoTestDescriptionArg
with attribute values.
-
builder
public static GoTestDescriptionArg.Builder builder()
Creates a builder forGoTestDescriptionArg
.- Returns:
- A new GoTestDescriptionArg builder
-
-