Class MemoizedValidator
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.google.auto.value.extension.memoized.processor.MemoizedValidator
- All Implemented Interfaces:
Processor
@AutoService(javax.annotation.processing.Processor.class)
@SupportedAnnotationTypes("com.google.auto.value.extension.memoized.Memoized")
public final class MemoizedValidator
extends AbstractProcessor
An annotation
Processor
that reports errors for @Memoized
methods that
are not inside AutoValue
-annotated classes.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Optional<AnnotationMirror>
getAnnotationMirror
(Element element, String annotationName) private static boolean
isAutoValue
(Element element) final boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
Constructor Details
-
MemoizedValidator
public MemoizedValidator()
-
-
Method Details
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
isAutoValue
-
getAnnotationMirror
-