Class Message
java.lang.Object
org.codehaus.groovy.control.messages.Message
- Direct Known Subclasses:
ExceptionMessage,SimpleMessage,SyntaxErrorMessage
A base class for compilation messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.final voidwrite(PrintWriter writer) A synonym for write( writer, owner, null ).abstract voidwrite(PrintWriter writer, Janitor janitor) Writes the message to the specified PrintWriter.
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
write
Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message. -
write
A synonym for write( writer, owner, null ). -
create
Creates a new Message from the specified text. -
create
Creates a new Message from the specified text. -
create
Creates a new Message from the specified SyntaxException.
-