public class AnnotationReporter extends ElementReporter
Modifier and Type | Field and Description |
---|---|
protected AnnotationMirror |
annotation |
element
processingEnv
Constructor and Description |
---|
AnnotationReporter(ProcessingEnvironment processingEnv,
Element element,
AnnotationMirror annotation)
Constructor.
|
AnnotationReporter(ProcessingEnvironment processingEnv,
Element element,
CharSequence annotationName) |
AnnotationReporter(ProcessingEnvironment processingEnv,
Element element,
Class<? extends Annotation> annotationClazz) |
Modifier and Type | Method and Description |
---|---|
ValueReporter |
forValue(AnnotationValue value)
Retrieves a reporter which prints messages corresponding to a certain value
of the annotation.
|
ValueReporter |
forValue(CharSequence valueName)
Retrieves a reporter which prints messages corresponding to a certain value
of the annotation.
|
protected void |
printMessage(Diagnostic.Kind kind,
CharSequence message)
Actually print a message of the given diagnostic kind.
|
forAnnotation, forAnnotation, forAnnotation
forElement
assembleMessage, error, mandatoryWarning, message, note, other, warning
protected AnnotationMirror annotation
public AnnotationReporter(ProcessingEnvironment processingEnv, Element element, AnnotationMirror annotation)
processingEnv
- the processing environmentelement
- the element to which messages referannotation
- the annotation to which messages referpublic AnnotationReporter(ProcessingEnvironment processingEnv, Element element, CharSequence annotationName)
public AnnotationReporter(ProcessingEnvironment processingEnv, Element element, Class<? extends Annotation> annotationClazz)
protected void printMessage(Diagnostic.Kind kind, CharSequence message)
AbstractReporter
printMessage
in class ElementReporter
kind
- the diagnostic kindmessage
- the message to printpublic ValueReporter forValue(CharSequence valueName)
valueName
- the name of the annotation valuepublic ValueReporter forValue(AnnotationValue value)
value
- the annotation valueCopyright © 2013–2014. All rights reserved.