@NotThreadSafe public static final class JavaPluginDescriptionArg.Builder extends Object
JavaPluginDescriptionArg
.
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 |
---|---|
JavaPluginDescriptionArg.Builder |
addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Adds elements to
compatibleWith list. |
JavaPluginDescriptionArg.Builder |
addAllDeps(Iterable<? extends BuildTarget> elements)
Adds elements to
deps sortedSet. |
JavaPluginDescriptionArg.Builder |
addAllLabels(Iterable<String> elements)
Adds elements to
labels sortedSet. |
JavaPluginDescriptionArg.Builder |
addAllLicenses(Iterable<? extends SourcePath> elements)
Adds elements to
licenses set. |
JavaPluginDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget... elements)
Adds elements to
compatibleWith list. |
JavaPluginDescriptionArg.Builder |
addCompatibleWith(UnconfiguredBuildTarget element)
Adds one element to
compatibleWith list. |
JavaPluginDescriptionArg.Builder |
addDeps(BuildTarget... elements)
Adds elements to
deps sortedSet. |
JavaPluginDescriptionArg.Builder |
addDeps(BuildTarget element)
Adds one element to
deps sortedSet. |
JavaPluginDescriptionArg.Builder |
addLabels(String... elements)
Adds elements to
labels sortedSet. |
JavaPluginDescriptionArg.Builder |
addLabels(String element)
Adds one element to
labels sortedSet. |
JavaPluginDescriptionArg.Builder |
addLicenses(SourcePath... elements)
Adds elements to
licenses set. |
JavaPluginDescriptionArg.Builder |
addLicenses(SourcePath element)
Adds one element to
licenses set. |
JavaPluginDescriptionArg |
build()
Builds a new
JavaPluginDescriptionArg . |
JavaPluginDescriptionArg.Builder |
from(BuildRuleArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.BuildRuleArg instance. |
JavaPluginDescriptionArg.Builder |
from(ConstructorArg instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.ConstructorArg instance. |
JavaPluginDescriptionArg.Builder |
from(HasDeclaredDeps instance)
Fill a builder with attribute values from the provided
com.facebook.buck.core.description.arg.HasDeclaredDeps instance. |
JavaPluginDescriptionArg.Builder |
from(JavacPluginArgs instance)
Fill a builder with attribute values from the provided
com.facebook.buck.jvm.java.JavacPluginArgs instance. |
JavaPluginDescriptionArg.Builder |
from(com.facebook.buck.jvm.java.JavaPluginDescription.AbstractJavaPluginDescriptionArg instance)
Copy abstract value type
AbstractJavaPluginDescriptionArg instance into builder. |
JavaPluginDescriptionArg.Builder |
from(JavaPluginDescriptionArg instance)
Fill a builder with attribute values from the provided
JavaPluginDescriptionArg instance. |
JavaPluginDescriptionArg.Builder |
setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
Sets or replaces all elements for
compatibleWith list. |
JavaPluginDescriptionArg.Builder |
setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
JavaPluginDescriptionArg.Builder |
setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
Initializes the optional value
defaultTargetPlatform to defaultTargetPlatform. |
JavaPluginDescriptionArg.Builder |
setDeps(Iterable<? extends BuildTarget> elements)
Sets or replaces all elements for
deps sortedSet. |
JavaPluginDescriptionArg.Builder |
setDoesNotAffectAbi(boolean doesNotAffectAbi)
Initializes the value for the
doesNotAffectAbi attribute. |
JavaPluginDescriptionArg.Builder |
setIsolateClassLoader(boolean isolateClassLoader)
Initializes the value for the
isolateClassLoader attribute. |
JavaPluginDescriptionArg.Builder |
setLabels(Iterable<String> elements)
Sets or replaces all elements for
labels sortedSet. |
JavaPluginDescriptionArg.Builder |
setLicenses(Iterable<? extends SourcePath> elements)
Sets or replaces all elements for
licenses set. |
JavaPluginDescriptionArg.Builder |
setName(String name)
Initializes the value for the
name attribute. |
JavaPluginDescriptionArg.Builder |
setPluginName(String pluginName)
Initializes the value for the
pluginName attribute. |
JavaPluginDescriptionArg.Builder |
setSupportsAbiGenerationFromSource(boolean supportsAbiGenerationFromSource)
Initializes the value for the
supportsAbiGenerationFromSource attribute. |
public final JavaPluginDescriptionArg.Builder from(JavacPluginArgs instance)
com.facebook.buck.jvm.java.JavacPluginArgs
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.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 JavaPluginDescriptionArg.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 JavaPluginDescriptionArg.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 JavaPluginDescriptionArg.Builder from(JavaPluginDescriptionArg instance)
JavaPluginDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder from(com.facebook.buck.jvm.java.JavaPluginDescription.AbstractJavaPluginDescriptionArg instance)
AbstractJavaPluginDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setPluginName(String pluginName)
pluginName
attribute.pluginName
- The value for pluginNamethis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setIsolateClassLoader(boolean isolateClassLoader)
isolateClassLoader
attribute.
If not set, this attribute will have a default value as returned by the initializer of isolateClassLoader
.
isolateClassLoader
- The value for isolateClassLoaderthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setDoesNotAffectAbi(boolean doesNotAffectAbi)
doesNotAffectAbi
attribute.
If not set, this attribute will have a default value as returned by the initializer of doesNotAffectAbi
.
doesNotAffectAbi
- The value for doesNotAffectAbithis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setSupportsAbiGenerationFromSource(boolean supportsAbiGenerationFromSource)
supportsAbiGenerationFromSource
attribute.
If not set, this attribute will have a default value as returned by the initializer of supportsAbiGenerationFromSource
.
supportsAbiGenerationFromSource
- The value for supportsAbiGenerationFromSourcethis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final JavaPluginDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final JavaPluginDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic JavaPluginDescriptionArg build()
JavaPluginDescriptionArg
.IllegalStateException
- if any required attributes are missing