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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Message
create
(String text, Object data, ProcessingUnit owner) Creates a newMessage
from the specified text and data.static Message
create
(String text, ProcessingUnit owner) Creates a newMessage
from the specified text.static Message
create
(SyntaxException error, SourceUnit owner) Creates a newMessage
from the specifiedSyntaxException
.final void
write
(PrintWriter writer) Writes this message to the specifiedPrintWriter
.abstract void
write
(PrintWriter writer, Janitor janitor) Writes this message to the specifiedPrintWriter
.
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
create
Creates a newMessage
from the specified text. -
create
Creates a newMessage
from the specified text and data. -
create
Creates a newMessage
from the specifiedSyntaxException
. -
write
Writes this message to the specifiedPrintWriter
. -
write
Writes this message to the specifiedPrintWriter
.
-