@NotThreadSafe public static final class JavaBinaryDescriptionArg.Builder extends Object
JavaBinaryDescriptionArg
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
JavaBinaryDescriptionArg.Builder |
addAllBlacklist(Iterable<? extends Pattern> elements)
Adds elements to
blacklist set. |
JavaBinaryDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
JavaBinaryDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
JavaBinaryDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
JavaBinaryDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
JavaBinaryDescriptionArg.Builder |
addAllTests(Iterable<? extends BuildTarget> elements)
Adds elements to
tests sortedSet. |
JavaBinaryDescriptionArg.Builder |
addBlacklist(Pattern... elements)
Adds elements to
blacklist set. |
JavaBinaryDescriptionArg.Builder |
addBlacklist(Pattern element)
Adds one element to
blacklist set. |
JavaBinaryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
JavaBinaryDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
JavaBinaryDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
JavaBinaryDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
JavaBinaryDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
JavaBinaryDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
JavaBinaryDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
JavaBinaryDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
JavaBinaryDescriptionArg.Builder |
addTests(BuildTarget... elements)
Adds elements to
tests sortedSet. |
JavaBinaryDescriptionArg.Builder |
addTests(BuildTarget element)
Adds one element to
tests sortedSet. |
JavaBinaryDescriptionArg |
build()
Builds a new
JavaBinaryDescriptionArg . |
JavaBinaryDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
JavaBinaryDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
JavaBinaryDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
JavaBinaryDescriptionArg.Builder |
from(HasTests instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasTests instance. |
JavaBinaryDescriptionArg.Builder |
from(com.facebook.buck.jvm.java.JavaBinaryDescription.AbstractJavaBinaryDescriptionArg instance)
Copy abstract value type
AbstractJavaBinaryDescriptionArg instance into builder. |
JavaBinaryDescriptionArg.Builder |
from(JavaBinaryDescriptionArg instance)
Fill a builder with attribute values from the provided
JavaBinaryDescriptionArg instance. |
JavaBinaryDescriptionArg.Builder |
setBlacklist(Iterable<? extends Pattern> elements)
Sets or replaces all elements for
blacklist set. |
JavaBinaryDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
JavaBinaryDescriptionArg.Builder |
setDefaultCxxPlatform(Flavor defaultCxxPlatform)
Initializes the optional value
defaultCxxPlatform to defaultCxxPlatform. |
JavaBinaryDescriptionArg.Builder |
setDefaultCxxPlatform(Optional<? extends Flavor> defaultCxxPlatform)
Initializes the optional value
defaultCxxPlatform to defaultCxxPlatform. |
JavaBinaryDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
JavaBinaryDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
JavaBinaryDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
JavaBinaryDescriptionArg.Builder |
setDisallowAllDuplicates(boolean disallowAllDuplicates)
Initializes the optional value
disallowAllDuplicates to disallowAllDuplicates. |
JavaBinaryDescriptionArg.Builder |
setDisallowAllDuplicates(Optional<Boolean> disallowAllDuplicates)
Initializes the optional value
disallowAllDuplicates to disallowAllDuplicates. |
JavaBinaryDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
JavaBinaryDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
JavaBinaryDescriptionArg.Builder |
setMainClass(Optional<String> mainClass)
Initializes the optional value
mainClass to mainClass. |
JavaBinaryDescriptionArg.Builder |
setMainClass(String mainClass)
Initializes the optional value
mainClass to mainClass. |
JavaBinaryDescriptionArg.Builder |
setManifestFile(Optional<? extends SourcePath> manifestFile)
Initializes the optional value
manifestFile to manifestFile. |
JavaBinaryDescriptionArg.Builder |
setManifestFile(SourcePath manifestFile)
Initializes the optional value
manifestFile to manifestFile. |
JavaBinaryDescriptionArg.Builder |
setMergeManifests(boolean mergeManifests)
Initializes the optional value
mergeManifests to mergeManifests. |
JavaBinaryDescriptionArg.Builder |
setMergeManifests(Optional<Boolean> mergeManifests)
Initializes the optional value
mergeManifests to mergeManifests. |
JavaBinaryDescriptionArg.Builder |
setMetaInfDirectory(Optional<? extends Path> metaInfDirectory)
Initializes the optional value
metaInfDirectory to metaInfDirectory. |
JavaBinaryDescriptionArg.Builder |
setMetaInfDirectory(Path metaInfDirectory)
Initializes the optional value
metaInfDirectory to metaInfDirectory. |
JavaBinaryDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
JavaBinaryDescriptionArg.Builder |
setTests(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
tests sortedSet. |
public final JavaBinaryDescriptionArg.Builder from(JavaBinaryDescriptionArg instance)
JavaBinaryDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder from(com.facebook.buck.jvm.java.JavaBinaryDescription.AbstractJavaBinaryDescriptionArg instance)
AbstractJavaBinaryDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder from(HasDeclaredDeps instance)
com.facebook.buck.core.description.arg.HasDeclaredDeps
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder from(HasTests instance)
com.facebook.buck.core.description.arg.HasTests
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder from(BuildRuleArg instance)
com.facebook.buck.core.description.arg.BuildRuleArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder from(ConstructorArg instance)
com.facebook.buck.core.description.arg.ConstructorArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setMainClass(String mainClass)
mainClass
to mainClass.mainClass
- The value for mainClassthis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setMainClass(Optional<String> mainClass)
mainClass
to mainClass.mainClass
- The value for mainClassthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setManifestFile(SourcePath manifestFile)
manifestFile
to manifestFile.manifestFile
- The value for manifestFilethis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setManifestFile(Optional<? extends SourcePath> manifestFile)
manifestFile
to manifestFile.manifestFile
- The value for manifestFilethis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setMergeManifests(boolean mergeManifests)
mergeManifests
to mergeManifests.mergeManifests
- The value for mergeManifeststhis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setMergeManifests(Optional<Boolean> mergeManifests)
mergeManifests
to mergeManifests.mergeManifests
- The value for mergeManifeststhis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setDisallowAllDuplicates(boolean disallowAllDuplicates)
disallowAllDuplicates
to disallowAllDuplicates.disallowAllDuplicates
- The value for disallowAllDuplicatesthis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setDisallowAllDuplicates(Optional<Boolean> disallowAllDuplicates)
disallowAllDuplicates
to disallowAllDuplicates.disallowAllDuplicates
- The value for disallowAllDuplicatesthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setMetaInfDirectory(Path metaInfDirectory)
metaInfDirectory
to metaInfDirectory.metaInfDirectory
- The value for metaInfDirectorythis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setMetaInfDirectory(Optional<? extends Path> metaInfDirectory)
metaInfDirectory
to metaInfDirectory.metaInfDirectory
- The value for metaInfDirectorythis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addBlacklist(Pattern element)
blacklist
set.element
- A blacklist elementthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addBlacklist(Pattern... elements)
blacklist
set.elements
- An array of blacklist elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setBlacklist(Iterable<? extends Pattern> elements)
blacklist
set.elements
- An iterable of blacklist elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addAllBlacklist(Iterable<? extends Pattern> elements)
blacklist
set.elements
- An iterable of blacklist elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setDefaultCxxPlatform(Flavor defaultCxxPlatform)
defaultCxxPlatform
to defaultCxxPlatform.defaultCxxPlatform
- The value for defaultCxxPlatformthis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setDefaultCxxPlatform(Optional<? extends Flavor> defaultCxxPlatform)
defaultCxxPlatform
to defaultCxxPlatform.defaultCxxPlatform
- The value for defaultCxxPlatformthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final JavaBinaryDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addTests(BuildTarget element)
tests
sortedSet.element
- A tests elementthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addTests(BuildTarget... elements)
tests
sortedSet.elements
- An array of tests elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder setTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic final JavaBinaryDescriptionArg.Builder addAllTests(Iterable<? extends BuildTarget> elements)
tests
sortedSet.elements
- An iterable of tests elementsthis
builder for use in a chained invocationpublic JavaBinaryDescriptionArg build()
JavaBinaryDescriptionArg
.IllegalStateException
- if any required attributes are missing