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.String
annotationFullName
The fully-qualified name of the annotation interface.(package private) java.lang.String
annotationName
The name of the annotation interface as it can be referenced in the generated code.(package private) java.lang.String
className
The simple name of the generated class, likeAutoAnnotation_Foo_bar
.(package private) java.lang.String
generated
The encoded form of theGenerated
class, or empty if it is not available.(package private) java.lang.Boolean
gwtCompatible
True if this annotation is marked@GwtCompatible
.(package private) 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.(package private) java.lang.Integer
invariableHashSum
The sum of the hash code contributions from the members ininvariableHashes
.(package private) java.util.Map<java.lang.String,AutoAnnotationProcessor.Member>
members
The members of the annotation being implemented.(package private) java.util.Map<java.lang.String,AutoAnnotationProcessor.Parameter>
params
The parameters in the@AutoAnnotation
method, which are also the constructor parameters in the generated class.(package private) java.lang.String
pkg
The package of the class containing the@AutoAnnotation
annotation, which is also the package where the annotation implementation will be generated.private static Template
TEMPLATE
(package private) java.util.Set<java.lang.Class<?>>
wrapperTypesUsedInCollections
The 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) Template
parsedTemplate()
-
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@AutoAnnotation
method, which are also the constructor parameters in the generated class.
-
generated
java.lang.String generated
The encoded form of theGenerated
class, or empty if it is not available.
-
pkg
java.lang.String pkg
The package of the class containing the@AutoAnnotation
annotation, 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:
parsedTemplate
in classTemplateVars
-
-