public abstract class Validator
extends java.lang.Object
implements javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
Base class for validators.
Modifier and Type | Field and Description |
---|---|
protected javax.lang.model.element.TypeElement |
annotationType |
protected javax.lang.model.element.AnnotationMirror |
currentAnnotation |
protected javax.lang.model.element.Element |
currentElement |
protected javax.lang.model.util.Elements |
elements |
protected Helpers |
helpers |
protected javax.annotation.processing.Messager |
messager |
protected RobolectricModel.Builder |
modelBuilder |
protected javax.lang.model.util.Types |
types |
Constructor and Description |
---|
Validator(RobolectricModel.Builder modelBuilder,
javax.annotation.processing.ProcessingEnvironment env,
java.lang.String annotationType) |
Modifier and Type | Method and Description |
---|---|
protected void |
error(java.lang.String msg) |
protected void |
error(java.lang.String msg,
javax.lang.model.element.AnnotationValue av) |
javax.lang.model.element.TypeElement |
getAnnotationType() |
protected javax.lang.model.element.AnnotationMirror |
getCurrentAnnotation() |
void |
init(javax.lang.model.element.Element e,
javax.lang.model.element.Element p) |
protected void |
message(javax.tools.Diagnostic.Kind severity,
java.lang.String msg) |
protected void |
message(javax.tools.Diagnostic.Kind severity,
java.lang.String msg,
javax.lang.model.element.AnnotationValue av) |
java.lang.Void |
visit(javax.lang.model.element.Element e) |
java.lang.Void |
visit(javax.lang.model.element.Element e,
javax.lang.model.element.Element p) |
java.lang.Void |
visitExecutable(javax.lang.model.element.ExecutableElement e,
javax.lang.model.element.Element p) |
java.lang.Void |
visitPackage(javax.lang.model.element.PackageElement e,
javax.lang.model.element.Element p) |
java.lang.Void |
visitType(javax.lang.model.element.TypeElement e,
javax.lang.model.element.Element p) |
java.lang.Void |
visitTypeParameter(javax.lang.model.element.TypeParameterElement e,
javax.lang.model.element.Element p) |
java.lang.Void |
visitUnknown(javax.lang.model.element.Element e,
javax.lang.model.element.Element p) |
java.lang.Void |
visitVariable(javax.lang.model.element.VariableElement e,
javax.lang.model.element.Element p) |
protected final RobolectricModel.Builder modelBuilder
protected final javax.lang.model.util.Elements elements
protected final javax.lang.model.util.Types types
protected final javax.annotation.processing.Messager messager
protected final javax.lang.model.element.TypeElement annotationType
protected final Helpers helpers
protected javax.lang.model.element.Element currentElement
protected javax.lang.model.element.AnnotationMirror currentAnnotation
public Validator(RobolectricModel.Builder modelBuilder, javax.annotation.processing.ProcessingEnvironment env, java.lang.String annotationType)
protected javax.lang.model.element.AnnotationMirror getCurrentAnnotation()
protected void message(javax.tools.Diagnostic.Kind severity, java.lang.String msg, javax.lang.model.element.AnnotationValue av)
protected void message(javax.tools.Diagnostic.Kind severity, java.lang.String msg)
protected void error(java.lang.String msg)
protected void error(java.lang.String msg, javax.lang.model.element.AnnotationValue av)
public void init(javax.lang.model.element.Element e, javax.lang.model.element.Element p)
public javax.lang.model.element.TypeElement getAnnotationType()
public java.lang.Void visit(javax.lang.model.element.Element e, javax.lang.model.element.Element p)
visit
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visit(javax.lang.model.element.Element e)
visit
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visitPackage(javax.lang.model.element.PackageElement e, javax.lang.model.element.Element p)
visitPackage
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visitType(javax.lang.model.element.TypeElement e, javax.lang.model.element.Element p)
visitType
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visitVariable(javax.lang.model.element.VariableElement e, javax.lang.model.element.Element p)
visitVariable
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visitExecutable(javax.lang.model.element.ExecutableElement e, javax.lang.model.element.Element p)
visitExecutable
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visitTypeParameter(javax.lang.model.element.TypeParameterElement e, javax.lang.model.element.Element p)
visitTypeParameter
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>
public java.lang.Void visitUnknown(javax.lang.model.element.Element e, javax.lang.model.element.Element p)
visitUnknown
in interface javax.lang.model.element.ElementVisitor<java.lang.Void,javax.lang.model.element.Element>