| Modifier and Type | Field and Description |
|---|---|
| private final Executable | |
| private final ImmutableBiMap |
| Access | Constructor and Description |
|---|---|
| private | BuilderMethodClassifierForAutoBuilder(ErrorReporter errorReporter, javax.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | autoWhat()
Implements abstract com. A string describing what sort of Auto this is, |
| pack-priv void | checkForFailedJavaBean(javax.
Implements abstract com. Checks for failed JavaBean usage when a method that looks like a setter doesn't actually match anything, and emits a compiler Note if detected. |
| pack-priv static Optional | Returns: anOptional that contains the results of the classification if it was
successful or nothing if it was not.the abstract methods in methods,builderType and its ancestors.where to report errors. errorReporter, javax.the ProcessingEnvironment for annotation processing. processingEnv,the constructor or static method that AutoBuilder will call. executable, javax.the type to be built. builtType,the builder class or interface within builderType,ofClass.properties that have a default value, so it is not an error for
them not to have a setter. propertiesWithDefaults, Nullables nullables)Classifies the given methods from a builder type and its ancestors. |
| pack-priv String | fooBuilderMustMatch()
Implements abstract com. A string describing what a property builder for property |
| pack-priv String | getterMustMatch()
Implements abstract com. A string describing what a builder getter must match: a property method for AutoValue, a parameter for AutoBuilder. |
| pack-priv javax. | originalPropertyType(javax.
Implements abstract com. Returns the property type as it appears on the original source program element. |
| pack-priv ImmutableBiMap | propertyElements()
Implements abstract com. Returns a map from property names to the corresponding source program elements. |
| pack-priv Optional | propertyForBuilderGetter(javax.
Implements abstract com. Returns the name of the property that the given no-arg builder method queries, if any. |
| pack-priv String | propertyString(javax.
Implements abstract com. A string identifying the given property element, which is a method for AutoValue or a parameter for AutoBuilder. |
| private static ImmutableMap | rewriteParameterTypes(Executable executable, javax.
|
| executable | back to summary |
|---|---|
| private final Executable executable | |
| paramToPropertyName | back to summary |
|---|---|
| private final ImmutableBiMap<javax. | |
| BuilderMethodClassifierForAutoBuilder | back to summary |
|---|---|
| private BuilderMethodClassifierForAutoBuilder(ErrorReporter errorReporter, javax. | |
| autoWhat | back to summary |
|---|---|
| pack-priv String autoWhat() Implements abstract com. Doc from com. A string describing what sort of Auto this is,
| |
| checkForFailedJavaBean | back to summary |
|---|---|
| pack-priv void checkForFailedJavaBean(javax. Implements abstract com. Doc from com. Checks for failed JavaBean usage when a method that looks like a setter doesn't actually match anything, and emits a compiler Note if detected. A frequent source of problems is where the JavaBeans conventions have been followed for most but not all getters. Then AutoValue considers that they haven't been followed at all, so you might have a property called getFoo where you thought it was called just foo, and you might not understand why your setter called setFoo is rejected (it would have to be called setGetFoo). This is not relevant for AutoBuilder, which uses parameter names rather than getters. The parameter names are unambiguously the same as the property names.
| |
| classify | back to summary |
|---|---|
| pack-priv static Optional Classifies the given methods from a builder type and its ancestors.
| |
| fooBuilderMustMatch | back to summary |
|---|---|
| pack-priv String fooBuilderMustMatch() Implements abstract com. Doc from com. A string describing what a property builder for property
| |
| getterMustMatch | back to summary |
|---|---|
| pack-priv String getterMustMatch() Implements abstract com. Doc from com. A string describing what a builder getter must match: a property method for AutoValue, a parameter for AutoBuilder.
| |
| originalPropertyType | back to summary |
|---|---|
| pack-priv javax. Implements abstract com. Doc from com. Returns the property type as it appears on the original source program element. This can be
different from the type stored in
| |
| propertyElements | back to summary |
|---|---|
| pack-priv ImmutableBiMap Implements abstract com. Doc from com. Returns a map from property names to the corresponding source program elements. For AutoValue,
these elements are the abstract getter methods in the
| |
| propertyForBuilderGetter | back to summary |
|---|---|
| pack-priv Optional Implements abstract com. Doc from com. Returns the name of the property that the given no-arg builder method queries, if
any. For example, if your
| |
| propertyString | back to summary |
|---|---|
| pack-priv String propertyString(javax. Implements abstract com. Doc from com. A string identifying the given property element, which is a method for AutoValue or a parameter for AutoBuilder.
| |
| rewriteParameterTypes | back to summary |
|---|---|
| private static ImmutableMap | |