public abstract class AbstractReporter extends Object implements Reporter
| Constructor and Description |
|---|
AbstractReporter() |
| Modifier and Type | Method and Description |
|---|---|
protected CharSequence |
assembleMessage(Object... msgObjects)
Concatenates the string representations of the given objects.
|
void |
error(Object... msgObjects)
Prints an error message.
|
void |
mandatoryWarning(Object... msgObjects)
Prints a warning message that is mandated by a specification.
|
void |
message(Diagnostic.Kind diagnosticKind,
Object... msgObjects)
Prints a message of the specified diagnostic kind.
|
void |
note(Object... msgObjects)
Prints an informational message.
|
void |
other(Object... msgObjects)
Prints some other type of message.
|
protected abstract void |
printMessage(Diagnostic.Kind kind,
CharSequence message)
Actually print a message of the given diagnostic kind.
|
void |
warning(Object... msgObjects)
Prints a warning message.
|
public void error(Object... msgObjects)
Reporterpublic void warning(Object... msgObjects)
Reporterpublic void mandatoryWarning(Object... msgObjects)
ReportermandatoryWarning in interface ReportermsgObjects - the components of the message, see aboveDiagnostic.Kind#MANDATORY_WARNINGpublic void note(Object... msgObjects)
Reporterpublic void other(Object... msgObjects)
Reporterpublic void message(Diagnostic.Kind diagnosticKind, Object... msgObjects)
Reporterprotected CharSequence assembleMessage(Object... msgObjects)
msgObjects - the objects to displayprotected abstract void printMessage(Diagnostic.Kind kind, CharSequence message)
kind - the diagnostic kindmessage - the message to printCopyright © 2013–2014. All rights reserved.