Class Diagnostics.Report
java.lang.Object
be.imgn.gaia.processing.Diagnostics.Report
- Enclosing class:
Diagnostics
A report about an element, possibly narrowed to one of its annotations and one attribute of it.
-
Method Summary
Modifier and TypeMethodDescriptionannotation(String qualifiedName) Narrows this report to the annotation of the element of a type.annotation(AnnotationMirror annotation) Narrows this report to an annotation of the element.Narrows this report to an attribute of the annotation.voidReports an error, which makes the compilation fail.voidReports a note.voidReports a warning.
-
Method Details
-
annotation
Narrows this report to an annotation of the element.- Parameters:
annotation- the annotation, as found on the element- Returns:
- the narrowed report
-
annotation
Narrows this report to the annotation of the element of a type.- Parameters:
qualifiedName- the fully qualified name of the annotation type- Returns:
- the narrowed report
- Throws:
IllegalArgumentException- if the element has no such annotation
-
attribute
Narrows this report to an attribute of the annotation. If the annotation does not write the attribute, leaving it to its default, the report stays on the annotation.- Parameters:
name- the name of the attribute- Returns:
- the narrowed report
- Throws:
IllegalStateException- if the report is not narrowed to an annotation yetIllegalArgumentException- if the annotation has no such attribute
-
error
Reports an error, which makes the compilation fail.- Parameters:
message- the message
-
warning
-
note
-