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
public abstract class FoundOnImplementsValidator extends Validator
Validator that checks usages of
Implements
.-
Field Summary
Fields Modifier and Type Field Description protected javax.lang.model.element.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, javax.annotation.processing.ProcessingEnvironment env, String annotationType)
-
Method Summary
Modifier and Type Method Description void
init(javax.lang.model.element.Element elem, javax.lang.model.element.Element p)
Void
visitExecutable(javax.lang.model.element.ExecutableElement elem, javax.lang.model.element.Element parent)
Void
visitExecutable(javax.lang.model.element.ExecutableElement elem, javax.lang.model.element.TypeElement parent)
Void
visitVariable(javax.lang.model.element.VariableElement elem, javax.lang.model.element.Element parent)
Void
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
-
Field Details
-
imp
protected javax.lang.model.element.AnnotationMirror imp
-
-
Constructor Details
-
FoundOnImplementsValidator
public FoundOnImplementsValidator(RobolectricModel.Builder modelBuilder, javax.annotation.processing.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)
-