public class RootReporter extends AbstractReporter
Messager
,
ProcessingEnvironment.getMessager()
Modifier and Type | Field and Description |
---|---|
protected ProcessingEnvironment |
processingEnv |
Constructor and Description |
---|
RootReporter(ProcessingEnvironment processingEnv)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ElementReporter |
forElement(Element element)
Retrieves an
ElementReporter for the given element. |
protected void |
printMessage(Diagnostic.Kind kind,
CharSequence message)
Actually print a message of the given diagnostic kind.
|
assembleMessage, error, mandatoryWarning, message, note, other, warning
protected final ProcessingEnvironment processingEnv
public RootReporter(ProcessingEnvironment processingEnv)
processingEnv
- the processing environment whose Messager
to useprotected void printMessage(Diagnostic.Kind kind, CharSequence message)
AbstractReporter
printMessage
in class AbstractReporter
kind
- the diagnostic kindmessage
- the message to printpublic ElementReporter forElement(Element element)
ElementReporter
for the given element.element
- the element for which to retrieve a reporterCopyright © 2013–2014. All rights reserved.