@AutoValue class Foo has a method ImmutableList<String> bar() then Foo.Builder
can have a method ImmutableList.Builder<String> barBuilder(). This class checks that a
method like barBuilder() follows the rules, and if so constructs a PropertyBuilder instance with information about barBuilder.
| Modifier and Type | Class and Description |
|---|---|
| public static class | PropertyBuilderClassifier.
Information about a property builder, referenced from the autovalue.vm template. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ImmutableSet | |
| private static final ImmutableSet | |
| private final BuilderMethodClassifier | |
| private final EclipseHack | |
| private final javax. | |
| private final ErrorReporter | |
| private final Nullables | |
| private static final ImmutableSet | |
| private final Predicate | |
| private final ImmutableMap | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PropertyBuilderClassifier(ErrorReporter errorReporter, javax.
|
| Modifier and Type | Method and Description |
|---|---|
| private Optional | addAllPutAll(javax.
|
| private Optional | builderMaker(ImmutableSet<String> methodNamesToCheck, Map<String, javax.
|
| private static boolean | isStaticInterfaceMethodNotIn(javax.
|
| pack-priv Optional | |
| private ImmutableMap | |
| private Optional | noArgBuilderMaker(Map<String, javax.
|
| private Map | |
| private Optional | oneArgBuilderMaker(Map<String, javax.
|
| private ImmutableMap |
| ADD_ALL_PUT_ALL | back to summary |
|---|---|
| private static final ImmutableSet<String> ADD_ALL_PUT_ALL | |
| BUILDER_METHOD_NAMES | back to summary |
|---|---|
| private static final ImmutableSet<String> BUILDER_METHOD_NAMES | |
| builderMethodClassifier | back to summary |
|---|---|
| private final BuilderMethodClassifier<?> builderMethodClassifier | |
| eclipseHack | back to summary |
|---|---|
| private final EclipseHack eclipseHack | |
| elementUtils | back to summary |
|---|---|
| private final javax. | |
| errorReporter | back to summary |
|---|---|
| private final ErrorReporter errorReporter | |
| nullables | back to summary |
|---|---|
| private final Nullables nullables | |
| ONE_ARGUMENT_BUILDER_METHOD_NAMES | back to summary |
|---|---|
| private static final ImmutableSet<String> ONE_ARGUMENT_BUILDER_METHOD_NAMES | |
| propertyIsNullable | back to summary |
|---|---|
| private final Predicate<String> propertyIsNullable | |
| propertyTypes | back to summary |
|---|---|
| private final ImmutableMap<String, javax. | |
| typeUtils | back to summary |
|---|---|
| private final javax. | |
| PropertyBuilderClassifier | back to summary |
|---|---|
| pack-priv PropertyBuilderClassifier(ErrorReporter errorReporter, javax. | |
| addAllPutAll | back to summary |
|---|---|
| private Optional | |
| builderMaker | back to summary |
|---|---|
| private Optional | |
| isStaticInterfaceMethodNotIn | back to summary |
|---|---|
| private static boolean isStaticInterfaceMethodNotIn(javax. | |
| makePropertyBuilder | back to summary |
|---|---|
| pack-priv Optional | |
| methodsOf | back to summary |
|---|---|
| private ImmutableMap | |
| noArgBuilderMaker | back to summary |
|---|---|
| private Optional | |
| noArgMethodsOf | back to summary |
|---|---|
| private Map | |
| oneArgBuilderMaker | back to summary |
|---|---|
| private Optional | |
| oneArgumentMethodsOf | back to summary |
|---|---|
| private ImmutableMap | |
bar() returns ImmutableSet<String> then barBuilder() might return ImmutableSet.Builder<String>.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final String | |
| private final javax. | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PropertyBuilder(javax.
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getBeforeInitDefault()
An empty string, or a complete statement to be included before the expression returned by
|
| public String | |
| public String | |
| pack-priv javax. | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public javax. | |
| public String | getPropertyBuilderMethodParameters()
The property builder method parameters, for example |
| beforeInitDefault | back to summary |
|---|---|
| private final String beforeInitDefault | |
| build | back to summary |
|---|---|
| private final String build | |
| builderType | back to summary |
|---|---|
| private final String builderType | |
| builderTypeMirror | back to summary |
|---|---|
| private final javax. | |
| builtToBuilder | back to summary |
|---|---|
| private final String builtToBuilder | |
| copyAll | back to summary |
|---|---|
| private final String copyAll | |
| initDefault | back to summary |
|---|---|
| private final String initDefault | |
| initializer | back to summary |
|---|---|
| private final String initializer | |
| name | back to summary |
|---|---|
| private final String name | |
| nullableBuilderType | back to summary |
|---|---|
| private final String nullableBuilderType | |
| propertyBuilderMethod | back to summary |
|---|---|
| private final javax. | |
| PropertyBuilder | back to summary |
|---|---|
| pack-priv PropertyBuilder(javax. | |
| getAccess | back to summary |
|---|---|
| public String getAccess() | |
| getBeforeInitDefault | back to summary |
|---|---|
| public String getBeforeInitDefault() An empty string, or a complete statement to be included before the expression returned by
| |
| getBuild | back to summary |
|---|---|
| public String getBuild() The name of the build method, | |
| getBuilderType | back to summary |
|---|---|
| public String getBuilderType() The type of the builder, for example | |
| getBuilderTypeMirror | back to summary |
|---|---|
| pack-priv javax. | |
| getBuiltToBuilder | back to summary |
|---|---|
| public String getBuiltToBuilder() A method to convert the built type back into a builder. Unfortunately Guava collections don't
have this (you can't say | |
| getCopyAll | back to summary |
|---|---|
| public String getCopyAll() The method to copy another collection into this builder. It is | |
| getInitDefault | back to summary |
|---|---|
| public String getInitDefault() An expression to return a default instance of the type that this builder builds. For example,
if this is an | |
| getInitializer | back to summary |
|---|---|
| public String getInitializer() An initializer for the builder field, for example | |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() The name of the property builder method. | |
| getName | back to summary |
|---|---|
| public String getName() The name of the field to hold this builder. | |
| getNullableBuilderType | back to summary |
|---|---|
| public String getNullableBuilderType() The type of the builder with an appropriate | |
| getPropertyBuilderMethod | back to summary |
|---|---|
| public javax. The property builder method, for example | |
| getPropertyBuilderMethodParameters | back to summary |
|---|---|
| public String getPropertyBuilderMethodParameters() The property builder method parameters, for example | |