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) 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) 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,BuilderSpec.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) java.lang.String |
buildMethodName
The simple name of 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 |
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.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<java.lang.String> |
propertiesWithBuilderGetters
Properties that have getters in the builder.
|
(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 org.apache.velocity.runtime.parser.node.SimpleNode |
TEMPLATE |
(package private) com.google.common.collect.ImmutableList<java.lang.String> |
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) org.apache.velocity.runtime.parser.node.SimpleNode |
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)"
.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 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
java.lang.String buildMethodName
"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,BuilderSpec.PropertyBuilder> builderPropertyBuilders
com.google.common.collect.ImmutableSet<AutoValueProcessor.Property> builderRequiredProperties
@Nullable
(in which case it defaults to null), or has a property-builder method
(in which case it defaults to empty).com.google.common.collect.ImmutableSet<java.lang.String> propertiesWithBuilderGetters
com.google.common.collect.ImmutableList<java.lang.String> toBuilderMethods
toBuilder()
methods, that is methods that return the builder type.private static final org.apache.velocity.runtime.parser.node.SimpleNode TEMPLATE
org.apache.velocity.runtime.parser.node.SimpleNode parsedTemplate()
parsedTemplate
in class TemplateVars