Top Description Constructors Methods
org.codehaus.groovy.control.messages

public abstract Class Message

extends Object
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.control.messages.SimpleMessage, org.codehaus.groovy.control.messages.SyntaxErrorMessage, org.codehaus.groovy.control.messages.ExceptionMessage
Imports
org.codehaus.groovy.control.Janitor, .ProcessingUnit, .SourceUnit, org.codehaus.groovy.syntax.SyntaxException, java.io.PrintWriter

A base class for compilation messages.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod 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 ).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Messageback to summary
public Message()

Method Detail

createback to summary
public static Message create(String text, ProcessingUnit owner)

Creates a new Message from the specified text.

createback to summary
public static Message create(String text, Object data, ProcessingUnit owner)

Creates a new Message from the specified text.

createback to summary
public static Message create(SyntaxException error, SourceUnit owner)

Creates a new Message from the specified SyntaxException.

writeback to summary
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.

writeback to summary
public final void write(PrintWriter writer)

A synonym for write( writer, owner, null ).