Class SimpleMessage
java.lang.Object
org.codehaus.groovy.control.messages.Message
org.codehaus.groovy.control.messages.SimpleMessage
- Direct Known Subclasses:
LocatedMessage
A base class for compilation messages.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleMessage(String message, Object data, ProcessingUnit owner) Creates a simple message with optional auxiliary data.SimpleMessage(String message, ProcessingUnit owner) Creates a simple message with no auxiliary data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the message text.voidwrite(PrintWriter writer, Janitor janitor) Writes this message, prefixing it with the source name when available.
-
Field Details
-
data
used whenmessageis an I18N identifier -
message
Message text to render. -
owner
Processing unit that owns the message.
-
-
Constructor Details
-
SimpleMessage
Creates a simple message with no auxiliary data.- Parameters:
message- the message textowner- the owning processing unit
-
SimpleMessage
Creates a simple message with optional auxiliary data.- Parameters:
message- the message textdata- supplemental message dataowner- the owning processing unit
-
-
Method Details