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)
Reporter
public void warning(Object... msgObjects)
Reporter
public void mandatoryWarning(Object... msgObjects)
Reporter
mandatoryWarning
in interface Reporter
msgObjects
- the components of the message, see aboveDiagnostic.Kind#MANDATORY_WARNING
public void note(Object... msgObjects)
Reporter
public void other(Object... msgObjects)
Reporter
public void message(Diagnostic.Kind diagnosticKind, Object... msgObjects)
Reporter
protected 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.