class AutoValueTemplateVars extends TemplateVars
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
actualTypes
The generic signature used by the generated subclass for its superclass reference.
|
(package private) com.google.common.collect.ImmutableList<java.lang.String> |
annotations
The full spelling of any annotation to add to this class, or an empty list if there are none.
|
(package private) java.lang.String |
arrays
The spelling of the java.util.Arrays class: Arrays or java.util.Arrays.
|
(package private) java.lang.String |
builderActualTypes
The generic signature used by the generated builder subclass for its superclass reference.
|
(package private) java.lang.String |
builderFormalTypes
The formal generic signature of the
AutoValue.Builder class. |
(package private) com.google.common.collect.ImmutableMap<java.lang.String,BuilderSpec.PropertyGetter> |
builderGetters
A map from property names to information about the associated property getter.
|
(package private) java.lang.Boolean |
builderIsInterface
True if the builder being implemented is an interface, false if it is an abstract class.
|
(package private) com.google.common.collect.ImmutableMap<java.lang.String,PropertyBuilderClassifier.PropertyBuilder> |
builderPropertyBuilders
A map from property names to information about the associated property builder.
|
(package private) com.google.common.collect.ImmutableSet<AutoValueProcessor.Property> |
builderRequiredProperties
Properties that are required to be set.
|
(package private) com.google.common.collect.ImmutableMultimap<java.lang.String,BuilderSpec.PropertySetter> |
builderSetters
A multimap from property names (like foo) to the corresponding setters.
|
(package private) java.lang.String |
builderTypeName
The name of the builder type as it should appear in source code, or empty if there is no
builder type.
|
(package private) com.google.common.base.Optional<AutoValueProcessor.SimpleMethod> |
buildMethod
The builder's build method, often
"build" . |
(package private) java.lang.Boolean |
equals
Whether to generate an equals(Object) method.
|
(package private) java.lang.String |
finalSubclass
The simple name of the final generated subclass.
|
(package private) java.lang.String |
formalTypes
The formal generic signature of the class with the
@AutoValue annotation and its
generated subclass. |
(package private) java.lang.String |
generated
The spelling of the javax.annotation.Generated class: Generated or javax.annotation.Generated.
|
(package private) java.lang.String |
gwtCompatibleAnnotation
The full spelling of the
@GwtCompatible annotation to add to this class, or an empty
string if there is none. |
(package private) java.lang.Boolean |
hashCode
Whether to generate a hashCode() method.
|
(package private) com.google.common.collect.ImmutableSortedSet<java.lang.String> |
imports
The fully-qualified names of the classes to be imported in the generated class.
|
(package private) java.lang.Boolean |
isFinal
True if the generated class should be final (there are no extensions that
will generate subclasses)
|
(package private) java.lang.String |
origClass
The name of the class with the
@AutoValue annotation, including containing
classes but not including the package name. |
(package private) java.lang.String |
pkg
The package of the class with the
@AutoValue annotation and its generated subclass. |
(package private) com.google.common.collect.ImmutableSet<AutoValueProcessor.Property> |
props
The properties defined by the parent class's abstract methods.
|
(package private) java.lang.String |
serialVersionUID
The text of the serialVersionUID constant, or empty if there is none.
|
(package private) java.lang.String |
simpleClassName
The simple name of the class with the
@AutoValue annotation. |
(package private) java.lang.String |
subclass
The simple name of the generated subclass.
|
private static Template |
TEMPLATE |
(package private) com.google.common.collect.ImmutableList<AutoValueProcessor.SimpleMethod> |
toBuilderMethods
The names of any
toBuilder() methods, that is methods that return the builder type. |
(package private) java.lang.Boolean |
toString
Whether to generate a toString() method.
|
(package private) javax.lang.model.util.Types |
types
The type utilities returned by
ProcessingEnvironment.getTypeUtils() . |
(package private) java.lang.String |
wildcardTypes
The generic signature in
actualTypes where every variable has been replaced
by a wildcard, for example <?, ?> . |
Constructor and Description |
---|
AutoValueTemplateVars() |
Modifier and Type | Method and Description |
---|---|
(package private) Template |
parsedTemplate() |
parsedTemplateForResource, toText
com.google.common.collect.ImmutableSet<AutoValueProcessor.Property> props
java.lang.Boolean equals
java.lang.Boolean hashCode
java.lang.Boolean toString
javax.lang.model.util.Types types
ProcessingEnvironment.getTypeUtils()
.com.google.common.collect.ImmutableSortedSet<java.lang.String> imports
java.lang.String generated
java.lang.String arrays
java.lang.String gwtCompatibleAnnotation
@GwtCompatible
annotation to add to this class, or an empty
string if there is none. A non-empty value might look something like
"@com.google.common.annotations.GwtCompatible(serializable = true)"
.com.google.common.collect.ImmutableList<java.lang.String> annotations
"@com.google.common.annotations.GwtCompatible(serializable = true)"
.java.lang.String serialVersionUID
java.lang.String pkg
@AutoValue
annotation and its generated subclass.java.lang.String origClass
@AutoValue
annotation, including containing
classes but not including the package name.java.lang.String simpleClassName
@AutoValue
annotation.java.lang.String subclass
java.lang.String finalSubclass
@AutoValue public static class Foo {}
this should always be "AutoValue_Foo".java.lang.Boolean isFinal
java.lang.String formalTypes
@AutoValue
annotation and its
generated subclass. This is empty, or contains type variables with optional bounds,
for example <K, V extends K>
.java.lang.String actualTypes
<K, V>
.java.lang.String wildcardTypes
actualTypes
where every variable has been replaced
by a wildcard, for example <?, ?>
.java.lang.String builderTypeName
Address
contains @AutoValue.Builder
class Builder
then this will typically be "Address.Builder"
.java.lang.String builderFormalTypes
AutoValue.Builder
class. This is empty, or contains
type variables with optional bounds, for example <K, V extends K>
.java.lang.String builderActualTypes
<K, V>
.java.lang.Boolean builderIsInterface
com.google.common.base.Optional<AutoValueProcessor.SimpleMethod> buildMethod
"build"
.com.google.common.collect.ImmutableMultimap<java.lang.String,BuilderSpec.PropertySetter> builderSetters
setFoo(ImmutableList<String>)
and setFoo(String[])
.com.google.common.collect.ImmutableMap<java.lang.String,PropertyBuilderClassifier.PropertyBuilder> builderPropertyBuilders
@AutoValue
types.com.google.common.collect.ImmutableSet<AutoValueProcessor.Property> builderRequiredProperties
@Nullable
(in which case it defaults to null);
Optional
(in which case it defaults to empty);
com.google.common.collect.ImmutableMap<java.lang.String,BuilderSpec.PropertyGetter> builderGetters
com.google.common.collect.ImmutableList<AutoValueProcessor.SimpleMethod> toBuilderMethods
toBuilder()
methods, that is methods that return the builder type.private static final Template TEMPLATE
Template parsedTemplate()
parsedTemplate
in class TemplateVars