public enum BuilderFactory extends java.lang.Enum<BuilderFactory>
| Modifier and Type | Class and Description |
|---|---|
static class |
BuilderFactory.TypeInference |
| Enum Constant and Description |
|---|
BUILDER_METHOD
The enclosing class provides a static builder() factory method.
|
NEW_BUILDER_METHOD
The enclosing class provides a static newBuilder() factory method.
|
NO_ARGS_CONSTRUCTOR
A new Builder can be made by calling the class' no-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<BuilderFactory> |
from(javax.lang.model.element.TypeElement builderType)
Determines the correct way of constructing a default
builderType instance, if any. |
abstract Excerpt |
newBuilder(Type builderType,
BuilderFactory.TypeInference typeInference)
Returns an excerpt calling the Builder factory method.
|
static BuilderFactory |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BuilderFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuilderFactory NO_ARGS_CONSTRUCTOR
public static final BuilderFactory BUILDER_METHOD
public static final BuilderFactory NEW_BUILDER_METHOD
public static BuilderFactory[] values()
for (BuilderFactory c : BuilderFactory.values()) System.out.println(c);
public static BuilderFactory valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.util.Optional<BuilderFactory> from(javax.lang.model.element.TypeElement builderType)
builderType instance, if any.public abstract Excerpt newBuilder(Type builderType, BuilderFactory.TypeInference typeInference)