Class FoundOnImplementsValidator
java.lang.Object
org.robolectric.annotation.processing.validator.Validator
org.robolectric.annotation.processing.validator.FoundOnImplementsValidator
- All Implemented Interfaces:
javax.lang.model.element.ElementVisitor<Void,
javax.lang.model.element.Element>
- Direct Known Subclasses:
ImplementationValidator
,RealObjectValidator
,ResetterValidator
Validator that checks usages of
Implements
.-
Field Summary
Fields inherited from class org.robolectric.annotation.processing.validator.Validator
annotationType, currentAnnotation, currentElement, elements, helpers, messager, modelBuilder, types
-
Constructor Summary
ConstructorDescriptionFoundOnImplementsValidator
(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, String annotationType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(javax.lang.model.element.Element elem, javax.lang.model.element.Element p) final Void
visitExecutable
(javax.lang.model.element.ExecutableElement elem, javax.lang.model.element.Element parent) visitExecutable
(javax.lang.model.element.ExecutableElement elem, javax.lang.model.element.TypeElement parent) final Void
visitVariable
(javax.lang.model.element.VariableElement elem, javax.lang.model.element.Element parent) visitVariable
(javax.lang.model.element.VariableElement elem, javax.lang.model.element.TypeElement parent) Methods inherited from class org.robolectric.annotation.processing.validator.Validator
error, error, getAnnotationType, getCurrentAnnotation, message, message, visit, visit, visitPackage, visitType, visitTypeParameter, visitUnknown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.lang.model.element.ElementVisitor
visitModule, visitRecordComponent
-
Field Details
-
imp
protected javax.lang.model.element.AnnotationMirror imp
-
-
Constructor Details
-
FoundOnImplementsValidator
public FoundOnImplementsValidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, String annotationType)
-
-
Method Details
-
init
public void init(javax.lang.model.element.Element elem, javax.lang.model.element.Element p) -
visitVariable
public final Void visitVariable(javax.lang.model.element.VariableElement elem, javax.lang.model.element.Element parent) - Specified by:
visitVariable
in interfacejavax.lang.model.element.ElementVisitor<Void,
javax.lang.model.element.Element> - Overrides:
visitVariable
in classValidator
-
visitVariable
public Void visitVariable(javax.lang.model.element.VariableElement elem, javax.lang.model.element.TypeElement parent) -
visitExecutable
public final Void visitExecutable(javax.lang.model.element.ExecutableElement elem, javax.lang.model.element.Element parent) - Specified by:
visitExecutable
in interfacejavax.lang.model.element.ElementVisitor<Void,
javax.lang.model.element.Element> - Overrides:
visitExecutable
in classValidator
-
visitExecutable
public Void visitExecutable(javax.lang.model.element.ExecutableElement elem, javax.lang.model.element.TypeElement parent)
-