@NotThreadSafe public static final class JavaAnnotationProcessorDescriptionArg.Builder extends Object
JavaAnnotationProcessorDescriptionArg
.
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.
public final JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.Builder from(JavaAnnotationProcessorDescriptionArg instance)
JavaAnnotationProcessorDescriptionArg
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder from(com.facebook.buck.jvm.java.JavaAnnotationProcessorDescription.AbstractJavaAnnotationProcessorDescriptionArg instance)
AbstractJavaAnnotationProcessorDescriptionArg
instance into builder.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.Builder setProcessorClass(String processorClass)
processorClass
to processorClass.processorClass
- The value for processorClassthis
builder for chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setProcessorClass(Optional<String> processorClass)
processorClass
to processorClass.processorClass
- The value for processorClassthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addProcessorClasses(String element)
processorClasses
set.element
- A processorClasses elementthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addProcessorClasses(String... elements)
processorClasses
set.elements
- An array of processorClasses elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setProcessorClasses(Iterable<String> elements)
processorClasses
set.elements
- An iterable of processorClasses elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addAllProcessorClasses(Iterable<String> elements)
processorClasses
set.elements
- An iterable of processorClasses elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.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 JavaAnnotationProcessorDescriptionArg.Builder addLicenses(SourcePath element)
licenses
set.element
- A licenses elementthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addLicenses(SourcePath... elements)
licenses
set.elements
- An array of licenses elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addAllLicenses(Iterable<? extends SourcePath> elements)
licenses
set.elements
- An iterable of licenses elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addLabels(String element)
labels
sortedSet.element
- A labels elementthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addLabels(String... elements)
labels
sortedSet.elements
- An array of labels elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addAllLabels(Iterable<String> elements)
labels
sortedSet.elements
- An iterable of labels elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setDefaultTargetPlatform(UnconfiguredBuildTarget defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setDefaultTargetPlatform(Optional<? extends UnconfiguredBuildTarget> defaultTargetPlatform)
defaultTargetPlatform
to defaultTargetPlatform.defaultTargetPlatform
- The value for defaultTargetPlatformthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget element)
compatibleWith
list.element
- A compatibleWith elementthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addCompatibleWith(UnconfiguredBuildTarget... elements)
compatibleWith
list.elements
- An array of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addAllCompatibleWith(Iterable<? extends UnconfiguredBuildTarget> elements)
compatibleWith
list.elements
- An iterable of compatibleWith elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setName(String name)
name
attribute.name
- The value for namethis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addDeps(BuildTarget element)
deps
sortedSet.element
- A deps elementthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addDeps(BuildTarget... elements)
deps
sortedSet.elements
- An array of deps elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder setDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic final JavaAnnotationProcessorDescriptionArg.Builder addAllDeps(Iterable<? extends BuildTarget> elements)
deps
sortedSet.elements
- An iterable of deps elementsthis
builder for use in a chained invocationpublic JavaAnnotationProcessorDescriptionArg build()
JavaAnnotationProcessorDescriptionArg
.IllegalStateException
- if any required attributes are missing