javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
FoundOnImplementsValidator
, ImplementsValidator
public abstract class Validator extends Object implements javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
Modifier and Type | Field | 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 | Description |
---|---|
Validator(RobolectricModel.Builder modelBuilder,
javax.annotation.processing.ProcessingEnvironment env,
String annotationType) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
error(String msg) |
|
protected void |
error(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,
String msg) |
|
protected void |
message(javax.tools.Diagnostic.Kind severity,
String msg,
javax.lang.model.element.AnnotationValue av) |
|
Void |
visit(javax.lang.model.element.Element e) |
|
Void |
visit(javax.lang.model.element.Element e,
javax.lang.model.element.Element p) |
|
Void |
visitExecutable(javax.lang.model.element.ExecutableElement e,
javax.lang.model.element.Element p) |
|
Void |
visitPackage(javax.lang.model.element.PackageElement e,
javax.lang.model.element.Element p) |
|
Void |
visitType(javax.lang.model.element.TypeElement e,
javax.lang.model.element.Element p) |
|
Void |
visitTypeParameter(javax.lang.model.element.TypeParameterElement e,
javax.lang.model.element.Element p) |
|
Void |
visitUnknown(javax.lang.model.element.Element e,
javax.lang.model.element.Element p) |
|
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, String annotationType)
protected javax.lang.model.element.AnnotationMirror getCurrentAnnotation()
protected void message(javax.tools.Diagnostic.Kind severity, String msg, javax.lang.model.element.AnnotationValue av)
protected void message(javax.tools.Diagnostic.Kind severity, String msg)
protected void error(String msg)
protected void error(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 Void visit(javax.lang.model.element.Element e, javax.lang.model.element.Element p)
visit
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public Void visit(javax.lang.model.element.Element e)
visit
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public Void visitPackage(javax.lang.model.element.PackageElement e, javax.lang.model.element.Element p)
visitPackage
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public Void visitType(javax.lang.model.element.TypeElement e, javax.lang.model.element.Element p)
visitType
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public Void visitVariable(javax.lang.model.element.VariableElement e, javax.lang.model.element.Element p)
visitVariable
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public Void visitExecutable(javax.lang.model.element.ExecutableElement e, javax.lang.model.element.Element p)
visitExecutable
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public Void visitTypeParameter(javax.lang.model.element.TypeParameterElement e, javax.lang.model.element.Element p)
visitTypeParameter
in interface javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>