Class SimpleMessage
- java.lang.Object
-
- org.codehaus.groovy.control.messages.Message
-
- org.codehaus.groovy.control.messages.SimpleMessage
-
- Direct Known Subclasses:
LocatedMessage
public class SimpleMessage extends Message
A base class for compilation messages.
-
-
Constructor Summary
Constructors Constructor Description SimpleMessage(String message, Object data, ProcessingUnit source)
SimpleMessage(String message, ProcessingUnit source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
void
write(PrintWriter writer, Janitor janitor)
Writes the message to the specified PrintWriter.
-
-
-
Field Detail
-
message
protected String message
-
data
protected Object data
-
owner
protected ProcessingUnit owner
-
-
Constructor Detail
-
SimpleMessage
public SimpleMessage(String message, ProcessingUnit source)
-
SimpleMessage
public SimpleMessage(String message, Object data, ProcessingUnit source)
-
-
Method Detail
-
write
public void write(PrintWriter writer, Janitor janitor)
Description copied from class:Message
Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message.
-
getMessage
public String getMessage()
-
-