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
The variables to substitute into the autooneof.vm template.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
The simple name of the generated class.(package private) String
The name of the method that gets the kind of the current@AutoOneOf
instance.(package private) String
The encoded name of the "kind" enum class.Maps property names likedog
to enum constants likeDOG
.(package private) com.google.common.collect.ImmutableSet
<AutoValueOrOneOfProcessor.Property> The properties defined by the parent class's abstract methods.private static final 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 -
Method Summary
Methods inherited from class com.google.auto.value.processor.TemplateVars
parsedTemplateForResource, toText
-
Field Details
-
props
com.google.common.collect.ImmutableSet<AutoValueOrOneOfProcessor.Property> propsThe 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
String generatedClassThe simple name of the generated class. -
kindType
String kindTypeThe encoded name of the "kind" enum class. -
kindGetter
String kindGetterThe name of the method that gets the kind of the current@AutoOneOf
instance. -
propertyToKind
Maps property names likedog
to enum constants likeDOG
. -
TEMPLATE
-
-
Constructor Details
-
AutoOneOfTemplateVars
AutoOneOfTemplateVars()
-
-
Method Details
-
parsedTemplate
Template parsedTemplate()- Specified by:
parsedTemplate
in classTemplateVars
-