public enum BuilderFactory extends Enum<BuilderFactory>
| 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 |
|---|---|
abstract void |
addNewBuilder(SourceBuilder code,
ParameterizedType builderType)
Adds a code snippet calling the Builder factory method.
|
static com.google.common.base.Optional<BuilderFactory> |
from(TypeElement builderType)
Determines the correct way of constructing a default
builderType instance, if any. |
static BuilderFactory |
valueOf(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static com.google.common.base.Optional<BuilderFactory> from(TypeElement builderType)
builderType instance, if any.public abstract void addNewBuilder(SourceBuilder code, ParameterizedType builderType)
Copyright © 2015 Google, Inc.. All rights reserved.