public class ElementReporter extends RootReporter
Modifier and Type | Field and Description |
---|---|
protected Element |
element |
processingEnv
Constructor and Description |
---|
ElementReporter(ProcessingEnvironment processingEnv,
Element element) |
Modifier and Type | Method and Description |
---|---|
AnnotationReporter |
forAnnotation(AnnotationMirror annotation) |
AnnotationReporter |
forAnnotation(CharSequence annotationName) |
AnnotationReporter |
forAnnotation(Class<? extends Annotation> annotationClazz) |
protected void |
printMessage(Diagnostic.Kind kind,
CharSequence message)
Actually print a message of the given diagnostic kind.
|
forElement
assembleMessage, error, mandatoryWarning, message, note, other, warning
protected final Element element
public ElementReporter(ProcessingEnvironment processingEnv, Element element)
protected void printMessage(Diagnostic.Kind kind, CharSequence message)
AbstractReporter
printMessage
in class RootReporter
kind
- the diagnostic kindmessage
- the message to printpublic AnnotationReporter forAnnotation(AnnotationMirror annotation)
public AnnotationReporter forAnnotation(CharSequence annotationName)
public AnnotationReporter forAnnotation(Class<? extends Annotation> annotationClazz)
Copyright © 2013–2014. All rights reserved.