Package com.google.auto.value.processor
Class AutoAnnotationTemplateVars
- java.lang.Object
-
- com.google.auto.value.processor.TemplateVars
-
- com.google.auto.value.processor.AutoAnnotationTemplateVars
-
class AutoAnnotationTemplateVars extends TemplateVars
The variables to substitute into the autoannotation.vm template.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringannotationFullNameThe fully-qualified name of the annotation interface.(package private) java.lang.StringannotationNameThe name of the annotation interface as it can be referenced in the generated code.(package private) java.lang.StringclassNameThe simple name of the generated class, likeAutoAnnotation_Foo_bar.(package private) java.lang.StringgeneratedThe encoded form of theGeneratedclass, or empty if it is not available.(package private) java.lang.BooleangwtCompatibleTrue if this annotation is marked@GwtCompatible.(package private) java.util.Set<java.lang.String>invariableHashesThe names of members that are defaulted (not mentioned) in this@AutoAnnotation, and whose hash codes are invariable.(package private) java.lang.IntegerinvariableHashSumThe sum of the hash code contributions from the members ininvariableHashes.(package private) java.util.Map<java.lang.String,AutoAnnotationProcessor.Member>membersThe members of the annotation being implemented.(package private) java.util.Map<java.lang.String,AutoAnnotationProcessor.Parameter>paramsThe parameters in the@AutoAnnotationmethod, which are also the constructor parameters in the generated class.(package private) java.lang.StringpkgThe package of the class containing the@AutoAnnotationannotation, which is also the package where the annotation implementation will be generated.private static TemplateTEMPLATE(package private) java.util.Set<java.lang.Class<?>>wrapperTypesUsedInCollectionsThe wrapper types (likeInteger.class) that are referenced in collection parameters (likeList<Integer>).
-
Constructor Summary
Constructors Constructor Description AutoAnnotationTemplateVars()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) TemplateparsedTemplate()-
Methods inherited from class com.google.auto.value.processor.TemplateVars
parsedTemplateForResource, toText
-
-
-
-
Field Detail
-
members
java.util.Map<java.lang.String,AutoAnnotationProcessor.Member> members
The members of the annotation being implemented.
-
params
java.util.Map<java.lang.String,AutoAnnotationProcessor.Parameter> params
The parameters in the@AutoAnnotationmethod, which are also the constructor parameters in the generated class.
-
generated
java.lang.String generated
The encoded form of theGeneratedclass, or empty if it is not available.
-
pkg
java.lang.String pkg
The package of the class containing the@AutoAnnotationannotation, which is also the package where the annotation implementation will be generated.
-
className
java.lang.String className
The simple name of the generated class, likeAutoAnnotation_Foo_bar.
-
annotationName
java.lang.String annotationName
The name of the annotation interface as it can be referenced in the generated code.
-
annotationFullName
java.lang.String annotationFullName
The fully-qualified name of the annotation interface.
-
wrapperTypesUsedInCollections
java.util.Set<java.lang.Class<?>> wrapperTypesUsedInCollections
The wrapper types (likeInteger.class) that are referenced in collection parameters (likeList<Integer>).
-
gwtCompatible
java.lang.Boolean gwtCompatible
True if this annotation is marked@GwtCompatible. That means that we can't useclone()to make a copy of an array.
-
invariableHashes
java.util.Set<java.lang.String> invariableHashes
The names of members that are defaulted (not mentioned) in this@AutoAnnotation, and whose hash codes are invariable.
-
invariableHashSum
java.lang.Integer invariableHashSum
The sum of the hash code contributions from the members ininvariableHashes.
-
TEMPLATE
private static final Template TEMPLATE
-
-
Method Detail
-
parsedTemplate
Template parsedTemplate()
- Specified by:
parsedTemplatein classTemplateVars
-
-