Class MemoizedValidator.ValidationStep
- java.lang.Object
-
- com.google.auto.value.extension.memoized.MemoizedValidator.ValidationStep
-
- All Implemented Interfaces:
BasicAnnotationProcessor.ProcessingStep
- Enclosing class:
- MemoizedValidator
private static final class MemoizedValidator.ValidationStep extends java.lang.Object implements BasicAnnotationProcessor.ProcessingStep
-
-
Field Summary
Fields Modifier and Type Field Description private javax.annotation.processing.Messagermessager
-
Constructor Summary
Constructors Constructor Description ValidationStep(javax.annotation.processing.Messager messager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<? extends java.lang.Class<? extends java.lang.annotation.Annotation>>annotations()The set of annotation types processed by this step.private static booleanisAutoValue(javax.lang.model.element.Element element)java.util.Set<javax.lang.model.element.Element>process(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,javax.lang.model.element.Element> elementsByAnnotation)The implementation of processing logic for the step.
-
-
-
Method Detail
-
annotations
public java.util.Set<? extends java.lang.Class<? extends java.lang.annotation.Annotation>> annotations()
Description copied from interface:BasicAnnotationProcessor.ProcessingStepThe set of annotation types processed by this step.- Specified by:
annotationsin interfaceBasicAnnotationProcessor.ProcessingStep
-
process
public java.util.Set<javax.lang.model.element.Element> process(com.google.common.collect.SetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,javax.lang.model.element.Element> elementsByAnnotation)
Description copied from interface:BasicAnnotationProcessor.ProcessingStepThe implementation of processing logic for the step. It is guaranteed that the keys inelementsByAnnotationwill be a subset of the set returned byBasicAnnotationProcessor.ProcessingStep.annotations().- Specified by:
processin interfaceBasicAnnotationProcessor.ProcessingStep- Returns:
- the elements (a subset of the values of
elementsByAnnotation) that this step is unable to process, possibly until a later processing round. These elements will be passed back to this step at the next round of processing.
-
isAutoValue
private static boolean isAutoValue(javax.lang.model.element.Element element)
-
-