com.google.auto.value.extension.memoized.Memoized
contract.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ImmutableSet | |
| private static final ClassName | |
| private static final AnnotationSpec |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static TypeName | annotatedType(javax.
Translate a |
| public boolean | applicable(AutoValueExtension.
The Context of the code generation for this class. contextOverrides com. Determines whether this Extension applies to the given context. |
| private static boolean | containsNullable(List<? extends javax.
True if one of the given annotations is |
| public String | generateClass(AutoValueExtension.
The context,Context of the code generation for this class.The simple name of the resulting class. The returned code will be written to a
file named accordingly. className, String The simple name of the direct parent of the generated class. This could be
the AutoValue generated class, or a class generated as the result of another Extension. classToExtend, boolean True if this class is the last class in the chain, meaning it should be marked
as final. Otherwise it should be marked as abstract. isFinal)Implements abstract com. Returns the generated source code of the class named |
| private static Optional | getLazyInitAnnotation(javax.
Returns the errorprone |
| public AutoValueExtension. | incrementalType(javax.
Overrides com. Determines the incremental type of this Extension. |
| private static ImmutableSet |
| DO_NOT_PULL_DOWN_ANNOTATIONS | back to summary |
|---|---|
| private static final ImmutableSet<String> DO_NOT_PULL_DOWN_ANNOTATIONS | |
| LAZY_INIT | back to summary |
|---|---|
| private static final ClassName LAZY_INIT | |
| SUPPRESS_WARNINGS | back to summary |
|---|---|
| private static final AnnotationSpec SUPPRESS_WARNINGS | |
| MemoizeExtension | back to summary |
|---|---|
| public MemoizeExtension() | |
| annotatedType | back to summary |
|---|---|
| private static TypeName annotatedType(javax. Translate a | |
| applicable | back to summary |
|---|---|
| public boolean applicable(AutoValueExtension. Overrides com. Doc from com. Determines whether this Extension applies to the given context. If an Extension returns
| |
| containsNullable | back to summary |
|---|---|
| private static boolean containsNullable(List<? extends javax. True if one of the given annotations is | |
| generateClass | back to summary |
|---|---|
| public String generateClass(AutoValueExtension. Implements abstract com. Doc from com. Returns the generated source code of the class named The returned string will typically look like this:
Here,
| |
| getLazyInitAnnotation | back to summary |
|---|---|
| private static Optional Returns the errorprone | |
| incrementalType | back to summary |
|---|---|
| public AutoValueExtension. Overrides com. Doc from com. Determines the incremental type of this Extension. The The actual incremental type of the AutoValue processor as a whole will be the loosest
incremental types of the Extensions present in the annotation processor path. The default
returned value is
| |
| memoizedMethods | back to summary |
|---|---|
| private static ImmutableSet | |
| Modifier and Type | Class and Description |
|---|---|
| private class | MemoizeExtension.
Determines the required fields and overriding method for a |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final AutoValueExtension. | |
| private final javax. | |
| private boolean | |
| private final boolean | |
| private final Optional | |
| private final javax. | |
| private final javax. | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| pack-priv | Generator(AutoValueExtension.
|
| Modifier and Type | Method and Description |
|---|---|
| private ImmutableList | |
| private MethodSpec | |
| private MethodSpec | |
| pack-priv String | |
| private static String | |
| private boolean | |
| private boolean | |
| private TypeName | |
| private ImmutableList |
| className | back to summary |
|---|---|
| private final String className | |
| classToExtend | back to summary |
|---|---|
| private final String classToExtend | |
| context | back to summary |
|---|---|
| private final AutoValueExtension. | |
| elements | back to summary |
|---|---|
| private final javax. | |
| hasErrors | back to summary |
|---|---|
| private boolean hasErrors | |
| isFinal | back to summary |
|---|---|
| private final boolean isFinal | |
| lazyInitAnnotation | back to summary |
|---|---|
| private final Optional<AnnotationSpec> lazyInitAnnotation | |
| messager | back to summary |
|---|---|
| private final javax. | |
| sourceVersion | back to summary |
|---|---|
| private final javax. | |
| types | back to summary |
|---|---|
| private final javax. | |
| Generator | back to summary |
|---|---|
| pack-priv Generator(AutoValueExtension. | |
| annotatedTypeVariableNames | back to summary |
|---|---|
| private ImmutableList | |
| constructor | back to summary |
|---|---|
| private MethodSpec constructor() | |
| equalsWithHashCodeCheck | back to summary |
|---|---|
| private MethodSpec equalsWithHashCodeCheck() | |
| generate | back to summary |
|---|---|
| pack-priv String generate() | |
| generateIdentifier | back to summary |
|---|---|
| private static String generateIdentifier(String name, Set<String> existingNames) | |
| isEqualsFinal | back to summary |
|---|---|
| private boolean isEqualsFinal() | |
| isHashCodeMemoized | back to summary |
|---|---|
| private boolean isHashCodeMemoized() | |
| superType | back to summary |
|---|---|
| private TypeName superType() | |
| typeVariableNames | back to summary |
|---|---|
| private ImmutableList | |
@Memoized method.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private abstract class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final FieldSpec | |
| private final ImmutableList. | |
| private final javax. | |
| private final MethodSpec. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private FieldSpec | |
| private void | |
| pack-priv Iterable | |
| pack-priv MethodSpec | |
| private javax. | |
| private boolean | |
| private void | |
| private boolean | |
| pack-priv MemoizeExtension. | |
| private void |
| cacheField | back to summary |
|---|---|
| private final FieldSpec cacheField | |
| fields | back to summary |
|---|---|
| private final ImmutableList. | |
| method | back to summary |
|---|---|
| private final javax. | |
| override | back to summary |
|---|---|
| private final MethodSpec. | |
| MethodOverrider | back to summary |
|---|---|
| pack-priv MethodOverrider(javax. | |
| buildCacheField | back to summary |
|---|---|
| private FieldSpec buildCacheField(TypeName type, String name) Builds a | |
| checkIllegalModifier | back to summary |
|---|---|
| private void checkIllegalModifier(javax. | |
| fields | back to summary |
|---|---|
| pack-priv Iterable The fields that should be added to the subclass. | |
| method | back to summary |
|---|---|
| pack-priv MethodSpec method() The overriding method that should be added to the subclass. | |
| objectMethod | back to summary |
|---|---|
| private javax. | |
| overridesObjectMethod | back to summary |
|---|---|
| private boolean overridesObjectMethod(String methodName) | |
| printMessage | back to summary |
|---|---|
private void printMessage(javax.
| |
| pullDownMethodAnnotation | back to summary |
|---|---|
| private boolean pullDownMethodAnnotation(javax. | |
| strategy | back to summary |
|---|---|
| pack-priv MemoizeExtension. | |
| validate | back to summary |
|---|---|
| private void validate() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Iterable | |
| pack-priv CodeBlock | |
| pack-priv CodeBlock |
| field | back to summary |
|---|---|
| private final FieldSpec field | |
| CheckBooleanField | back to summary |
|---|---|
| private CheckBooleanField() | |
| additionalFields | back to summary |
|---|---|
| pack-priv Iterable Implements abstract com.
| |
| checkMemoized | back to summary |
|---|---|
| pack-priv CodeBlock checkMemoized() Implements abstract com.
| |
| setMemoized | back to summary |
|---|---|
| pack-priv CodeBlock setMemoized() Implements abstract com.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract Iterable | |
| pack-priv abstract CodeBlock | |
| pack-priv abstract CodeBlock |
| InitializationStrategy | back to summary |
|---|---|
| private InitializationStrategy() | |
| additionalFields | back to summary |
|---|---|
| pack-priv abstract Iterable | |
| checkMemoized | back to summary |
|---|---|
| pack-priv abstract CodeBlock checkMemoized() | |
| setMemoized | back to summary |
|---|---|
| pack-priv abstract CodeBlock setMemoized() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Iterable | |
| pack-priv CodeBlock | |
| pack-priv CodeBlock |
| NullMeansUninitialized | back to summary |
|---|---|
| private NullMeansUninitialized() | |
| additionalFields | back to summary |
|---|---|
| pack-priv Iterable Implements abstract com.
| |
| checkMemoized | back to summary |
|---|---|
| pack-priv CodeBlock checkMemoized() Implements abstract com.
| |
| setMemoized | back to summary |
|---|---|
| pack-priv CodeBlock setMemoized() Implements abstract com.
| |