Class FoundOnImplementsValidator
- java.lang.Object
-
- org.robolectric.annotation.processing.validator.Validator
-
- org.robolectric.annotation.processing.validator.FoundOnImplementsValidator
-
- All Implemented Interfaces:
ElementVisitor<Void,Element>
- Direct Known Subclasses:
ImplementationValidator
,RealObjectValidator
,ResetterValidator
public abstract class FoundOnImplementsValidator extends Validator
Validator that checks usages ofImplements
.
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationMirror
imp
-
Fields inherited from class org.robolectric.annotation.processing.validator.Validator
annotationType, currentAnnotation, currentElement, elements, helpers, messager, modelBuilder, types
-
-
Constructor Summary
Constructors Constructor Description FoundOnImplementsValidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, String annotationType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Element elem, Element p)
Void
visitExecutable(ExecutableElement elem, Element parent)
Void
visitExecutable(ExecutableElement elem, TypeElement parent)
Void
visitVariable(VariableElement elem, Element parent)
Void
visitVariable(VariableElement elem, 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
-
-
-
-
Field Detail
-
imp
protected AnnotationMirror imp
-
-
Constructor Detail
-
FoundOnImplementsValidator
public FoundOnImplementsValidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, String annotationType)
-
-
Method Detail
-
visitVariable
public final Void visitVariable(VariableElement elem, Element parent)
- Specified by:
visitVariable
in interfaceElementVisitor<Void,Element>
- Overrides:
visitVariable
in classValidator
-
visitVariable
public Void visitVariable(VariableElement elem, TypeElement parent)
-
visitExecutable
public final Void visitExecutable(ExecutableElement elem, Element parent)
- Specified by:
visitExecutable
in interfaceElementVisitor<Void,Element>
- Overrides:
visitExecutable
in classValidator
-
visitExecutable
public Void visitExecutable(ExecutableElement elem, TypeElement parent)
-
-