Package com.google.auto.value.processor
Class AutoOneOfTemplateVars
- java.lang.Object
-
- com.google.auto.value.processor.TemplateVars
-
- com.google.auto.value.processor.AutoOneOfTemplateVars
-
class AutoOneOfTemplateVars extends TemplateVars
The variables to substitute into the autooneof.vm template.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
actualTypes
The generic signature used by the generated subclass for its superclass reference.(package private) java.lang.Boolean
equals
Whether to generate an equals(Object) method.(package private) java.lang.String
equalsParameterType
A string representing the parameter type declaration of the equals(Object) method, including any annotations.(package private) java.lang.String
formalTypes
The formal generic signature of the class with the@AutoOneOf
annotation and its generated subclasses.(package private) java.lang.String
generated
The encoding of theGenerated
class.(package private) java.lang.String
generatedClass
The simple name of the generated class.(package private) java.lang.Boolean
hashCode
Whether to generate a hashCode() method.(package private) java.lang.String
kindGetter
The name of the method that gets the kind of the current@AutoOneOf
instance.(package private) java.lang.String
kindType
The encoded name of the "kind" enum class.(package private) java.lang.String
origClass
The name of the class with the@AutoOneOf
annotation, including containing classes but not including the package name.(package private) java.lang.String
pkg
The package of the class with the@AutoOneOf
annotation and its generated subclass.(package private) java.util.Map<java.lang.String,java.lang.String>
propertyToKind
Maps property names likedog
to enum constants likeDOG
.(package private) com.google.common.collect.ImmutableSet<AutoValueOrOneOfProcessor.Property>
props
The properties defined by the parent class's abstract methods.(package private) java.lang.String
simpleClassName
The simple name of the class with the@AutoOneOf
annotation.private static Template
TEMPLATE
(package private) java.lang.Boolean
toString
Whether to generate a toString() method.(package private) javax.lang.model.util.Types
types
The type utilities returned byProcessingEnvironment.getTypeUtils()
.(package private) java.lang.String
wildcardTypes
The generic signature inactualTypes
where every variable has been replaced by a wildcard, for example<?, ?>
.
-
Constructor Summary
Constructors Constructor Description AutoOneOfTemplateVars()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Template
parsedTemplate()
-
Methods inherited from class com.google.auto.value.processor.TemplateVars
parsedTemplateForResource, toText
-
-
-
-
Field Detail
-
props
com.google.common.collect.ImmutableSet<AutoValueOrOneOfProcessor.Property> props
The properties defined by the parent class's abstract methods. The elements of this set are in the same order as the original abstract method declarations in the AutoOneOf class.
-
equals
java.lang.Boolean equals
Whether to generate an equals(Object) method.
-
hashCode
java.lang.Boolean hashCode
Whether to generate a hashCode() method.
-
toString
java.lang.Boolean toString
Whether to generate a toString() method.
-
equalsParameterType
java.lang.String equalsParameterType
A string representing the parameter type declaration of the equals(Object) method, including any annotations. Ifequals
is false, this field is ignored (but it must still be non-null).
-
types
javax.lang.model.util.Types types
The type utilities returned byProcessingEnvironment.getTypeUtils()
.
-
generated
java.lang.String generated
The encoding of theGenerated
class. Empty if the class is not available.
-
pkg
java.lang.String pkg
The package of the class with the@AutoOneOf
annotation and its generated subclass.
-
origClass
java.lang.String origClass
The name of the class with the@AutoOneOf
annotation, including containing classes but not including the package name.
-
simpleClassName
java.lang.String simpleClassName
The simple name of the class with the@AutoOneOf
annotation.
-
generatedClass
java.lang.String generatedClass
The simple name of the generated class.
-
kindType
java.lang.String kindType
The encoded name of the "kind" enum class.
-
kindGetter
java.lang.String kindGetter
The name of the method that gets the kind of the current@AutoOneOf
instance.
-
propertyToKind
java.util.Map<java.lang.String,java.lang.String> propertyToKind
Maps property names likedog
to enum constants likeDOG
.
-
formalTypes
java.lang.String formalTypes
The formal generic signature of the class with the@AutoOneOf
annotation and its generated subclasses. This is empty, or contains type variables with optional bounds, for example<K, V extends K>
.
-
actualTypes
java.lang.String actualTypes
The generic signature used by the generated subclass for its superclass reference. This is empty, or contains only type variables with no bounds, for example<K, V>
.
-
wildcardTypes
java.lang.String wildcardTypes
The generic signature inactualTypes
where every variable has been replaced by a wildcard, for example<?, ?>
.
-
TEMPLATE
private static final Template TEMPLATE
-
-
Method Detail
-
parsedTemplate
Template parsedTemplate()
- Specified by:
parsedTemplate
in classTemplateVars
-
-