Class Message
- java.lang.Object
 - 
- org.codehaus.groovy.control.messages.Message
 
 
- 
- Direct Known Subclasses:
 ExceptionMessage,SimpleMessage,SyntaxErrorMessage
public abstract class Message extends Object
A base class for compilation messages. 
- 
- 
Constructor Summary
Constructors Constructor Description Message() 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Messagecreate(String text, Object data, ProcessingUnit owner)Creates a new Message from the specified text.static Messagecreate(String text, ProcessingUnit owner)Creates a new Message from the specified text.static Messagecreate(SyntaxException error, SourceUnit owner)Creates a new Message from the specified SyntaxException.voidwrite(PrintWriter writer)A synonym for write( writer, owner, null ).abstract voidwrite(PrintWriter writer, Janitor janitor)Writes the message to the specified PrintWriter. 
 - 
 
- 
- 
Method Detail
- 
write
public abstract void write(PrintWriter writer, Janitor janitor)
Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message. 
- 
write
public final void write(PrintWriter writer)
A synonym for write( writer, owner, null ). 
- 
create
public static Message create(String text, ProcessingUnit owner)
Creates a new Message from the specified text. 
- 
create
public static Message create(String text, Object data, ProcessingUnit owner)
Creates a new Message from the specified text. 
- 
create
public static Message create(SyntaxException error, SourceUnit owner)
Creates a new Message from the specified SyntaxException. 
 - 
 
 -