com.google.auto.value.extension.toprettystring.ToPrettyString annotated methods in com.google.auto.value.AutoValue types.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final ImmutableSet | |
| private static final CodeBlock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | applicable(AutoValueExtension.
The Context of the code generation for this class. contextOverrides com. Determines whether this Extension applies to the given context. |
| public ImmutableSet | consumeMethods(AutoValueExtension.
the Context of the code generation for this class. contextOverrides com. Returns a possible empty set of abstract methods that this Extension intends to implement. |
| 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 |
| public AutoValueExtension. | incrementalType(javax.
Overrides com. Determines the incremental type of this Extension. |
| private static MethodSpec | |
| private ImmutableList |
| INDENT | back to summary |
|---|---|
| private static final String INDENT | |
| INDENT_METHOD_NAME | back to summary |
|---|---|
| private static final String INDENT_METHOD_NAME | |
| INHERITED_VISIBILITY_MODIFIERS | back to summary |
|---|---|
| private static final ImmutableSet<javax. | |
| KEY_VALUE_SEPARATOR | back to summary |
|---|---|
| private static final CodeBlock KEY_VALUE_SEPARATOR | |
| ToPrettyStringExtension | back to summary |
|---|---|
| public ToPrettyStringExtension() | |
| 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
| |
| consumeMethods | back to summary |
|---|---|
| public ImmutableSet Overrides com. Doc from com. Returns a possible empty set of abstract methods that this Extension intends to implement. This will prevent AutoValue from generating an implementation, in cases where it would have, and it will also avoid warnings about abstract methods that AutoValue doesn't expect. The default set returned by this method is empty. Each returned method must be one of the abstract methods in For example, Android's
| |
| 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,
| |
| 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
| |
| indentMethod | back to summary |
|---|---|
| private static MethodSpec indentMethod() | |
| toPrettyStringMethodSpecs | back to summary |
|---|---|
| private ImmutableList | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| private static final ImmutableMap | |
| private static final ImmutableMap | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. | |
| public static final ToPrettyStringExtension. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ToPrettyStringExtension. | |
| public static ToPrettyStringExtension. |
| ARRAY | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| COLLECTION | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| GUAVA_OPTIONAL | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| HAS_TO_PRETTY_STRING_METHOD | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| IMMUTABLE_PRIMITIVE_ARRAY | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| KINDS_BY_EXACT_TYPE | back to summary |
|---|---|
| private static final ImmutableMap<String, ToPrettyStringExtension. | |
| KINDS_BY_SUPERTYPE | back to summary |
|---|---|
| private static final ImmutableMap<String, ToPrettyStringExtension. | |
| MAP | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| MULTIMAP | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| OPTIONAL | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| PRIMITIVE | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| REGULAR_OBJECT | back to summary |
|---|---|
| public static final ToPrettyStringExtension. | |
| PrettyPrintableKind | back to summary |
|---|---|
| private PrettyPrintableKind() | |
| valueOf | back to summary |
|---|---|
| public static ToPrettyStringExtension. | |
| values | back to summary |
|---|---|
| public static ToPrettyStringExtension. | |
| Modifier and Type | Field and Description |
|---|---|
| private final javax. | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ToPrettyStringExtension. | |
| public ToPrettyStringExtension. | |
| public ToPrettyStringExtension. |
| elements | back to summary |
|---|---|
| private final javax. | |
| types | back to summary |
|---|---|
| private final javax. | |
| KindVisitor | back to summary |
|---|---|
| pack-priv KindVisitor(javax. | |
| visitArray | back to summary |
|---|---|
public ToPrettyStringExtension.
| |
| visitDeclared | back to summary |
|---|---|
public ToPrettyStringExtension.
| |
| visitPrimitive | back to summary |
|---|---|
public ToPrettyStringExtension.
| |
| Modifier and Type | Class and Description |
|---|---|
| private class | ToPrettyStringExtension.
Parameter object to simplify the branches of |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final javax. | |
| private final Set | |
| private final CodeBlock. | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private javax. | |
| pack-priv static ToPrettyStringExtension. | |
| private CodeBlock | |
| private CodeBlock | forEachMapEntryMethodBody(javax.
|
| private CodeBlock | |
| private CodeBlock | format(CodeBlock
a reference to the variable that should be formatted. propertyAccess, CodeBlock a reference to an indentAccess, javax.int representing how many indent levels should
be used for this property.the type of the typepropertyAccess.Returns |
| private CodeBlock | formatMap(javax.
|
| private CodeBlock | formatMultimap(javax.
|
| pack-priv boolean | |
| private CodeBlock | loopMethodBody(String openSymbol, String closeSymbol, CodeBlock loopDeclaration, CodeBlock... appendedValues)
|
| private CodeBlock | |
| private javax. | |
| private CodeBlock | multimapMethodBody(javax.
|
| private javax. | |
| private String | nameForType(javax.
Returns a valid Java identifier for method or variable of type |
| private CodeBlock | optionalMethodBody(javax.
|
| private CodeBlock | |
| private ImmutableList | |
| private String |
| delegateMethods | back to summary |
|---|---|
| private final Map<Equivalence. | |
| elements | back to summary |
|---|---|
| private final javax. | |
| methodNames | back to summary |
|---|---|
| private final Set<String> methodNames | |
| toStringCodeBlock | back to summary |
|---|---|
| private final CodeBlock. | |
| types | back to summary |
|---|---|
| private final javax. | |
| ToPrettyStringImplementation | back to summary |
|---|---|
| private ToPrettyStringImplementation(AutoValueExtension. | |
| collectionOf | back to summary |
|---|---|
| private javax. | |
| create | back to summary |
|---|---|
| pack-priv static ToPrettyStringExtension. | |
| forEachLoopMethodBody | back to summary |
|---|---|
| private CodeBlock forEachLoopMethodBody(javax. | |
| forEachMapEntryMethodBody | back to summary |
|---|---|
| private CodeBlock forEachMapEntryMethodBody(javax. | |
| forLoopMethodBody | back to summary |
|---|---|
| private CodeBlock forLoopMethodBody() | |
| format | back to summary |
|---|---|
| private CodeBlock format(CodeBlock propertyAccess, CodeBlock indentAccess, javax. Returns If a helper method is necessary for formatting, a | |
| formatMap | back to summary |
|---|---|
| private CodeBlock formatMap(javax. | |
| formatMultimap | back to summary |
|---|---|
| private CodeBlock formatMultimap(javax. | |
| isMapOrMultimap | back to summary |
|---|---|
| pack-priv boolean isMapOrMultimap(javax. | |
| loopMethodBody | back to summary |
|---|---|
| private CodeBlock loopMethodBody(String openSymbol, String closeSymbol, CodeBlock loopDeclaration, CodeBlock... appendedValues) | |
| mapMethodBody | back to summary |
|---|---|
| private CodeBlock mapMethodBody(javax. | |
| mapOf | back to summary |
|---|---|
| private javax. | |
| multimapMethodBody | back to summary |
|---|---|
| private CodeBlock multimapMethodBody(javax. | |
| multimapOf | back to summary |
|---|---|
| private javax. | |
| nameForType | back to summary |
|---|---|
| private String nameForType(javax. Returns a valid Java identifier for method or variable of type | |
| optionalMethodBody | back to summary |
|---|---|
| private CodeBlock optionalMethodBody(javax. | |
| reindent | back to summary |
|---|---|
| private CodeBlock reindent(CharSequence methodName) | |
| resolvedTypeParameters | back to summary |
|---|---|
| private ImmutableList | |
| simpleNameForType | back to summary |
|---|---|
| private String simpleNameForType(javax. | |
format(CodeBlock, CodeBlock,
TypeMirror) that call a delegate method.
| Modifier and Type | Field and Description |
|---|---|
| private final CodeBlock | |
| private Optional | |
| private final CodeBlock |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private MethodSpec | createMethod(String methodName, javax.
|
| pack-priv CodeBlock | |
| pack-priv ToPrettyStringExtension. | |
| private String |
| indentAccess | back to summary |
|---|---|
| private final CodeBlock indentAccess | |
| methodName | back to summary |
|---|---|
| private Optional<String> methodName | |
| propertyAccess | back to summary |
|---|---|
| private final CodeBlock propertyAccess | |
| DelegateMethod | back to summary |
|---|---|
| pack-priv DelegateMethod(CodeBlock propertyAccess, CodeBlock indentAccess) | |
| createMethod | back to summary |
|---|---|
| private MethodSpec createMethod(String methodName, javax. | |
| invocation | back to summary |
|---|---|
| pack-priv CodeBlock invocation(javax. | |
| methodName | back to summary |
|---|---|
| pack-priv ToPrettyStringExtension. | |
| newDelegateMethodName | back to summary |
|---|---|
| private String newDelegateMethodName(javax. | |