Package com.google.auto.value.processor
Class AutoOneOfTemplateVars
- java.lang.Object
-
- com.google.auto.value.processor.TemplateVars
-
- com.google.auto.value.processor.AutoValueOrOneOfTemplateVars
-
- com.google.auto.value.processor.AutoOneOfTemplateVars
-
class AutoOneOfTemplateVars extends AutoValueOrOneOfTemplateVars
The variables to substitute into the autooneof.vm template.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
generatedClass
The simple name of the generated class.(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.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.private static Template
TEMPLATE
-
Fields inherited from class com.google.auto.value.processor.AutoValueOrOneOfTemplateVars
actualTypes, annotations, equals, equalsParameterType, formalTypes, generated, hashCode, origClass, pkg, simpleClassName, toString, wildcardTypes
-
-
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.
-
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
.
-
TEMPLATE
private static final Template TEMPLATE
-
-
Method Detail
-
parsedTemplate
Template parsedTemplate()
- Specified by:
parsedTemplate
in classTemplateVars
-
-