public abstract class Message extends Object
A base class for compilation messages.
Type Params | Return Type | Name and description |
---|---|---|
public static Message |
create(String text, ProcessingUnit owner) Creates a new Message from the specified text. | |
public static Message |
create(String text, Object data, ProcessingUnit owner) Creates a new Message from the specified text. | |
public static Message |
create(SyntaxException error, SourceUnit owner) Creates a new Message from the specified SyntaxException. | |
public abstract void |
write(PrintWriter writer, Janitor janitor) Writes the message to the specified PrintWriter. | |
public final void |
write(PrintWriter writer) A synonym for write( writer, owner, null ). |
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates a new Message from the specified text.
Creates a new Message from the specified text.
Creates a new Message from the specified SyntaxException.
Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message.
A synonym for write( writer, owner, null ).
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/control/messages/Message.html