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

public Class SimpleMessage

extends Message
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.control.messages.LocatedMessage
Imports
org.codehaus.groovy.control.Janitor, .ProcessingUnit, .SourceUnit, java.io.PrintWriter

A base class for compilation messages.

Field Summary

Modifier and TypeField and Description
protected Object
protected String
protected ProcessingUnit

Constructor Summary

AccessConstructor and Description
public
public
SimpleMessage(String message, Object data, ProcessingUnit source)

Method Summary

Modifier and TypeMethod and Description
public String
public void
write(PrintWriter writer, Janitor janitor)

Implements abstract org.codehaus.groovy.control.messages.Message.write.

Writes the message to the specified PrintWriter.
Inherited from org.codehaus.groovy.control.messages.Message:
createcreatecreatewrite

Field Detail

databack to summary
protected Object data
messageback to summary
protected String message
ownerback to summary
protected ProcessingUnit owner

Constructor Detail

SimpleMessageback to summary
public SimpleMessage(String message, ProcessingUnit source)
SimpleMessageback to summary
public SimpleMessage(String message, Object data, ProcessingUnit source)

Method Detail

getMessageback to summary
public String getMessage()
writeback to summary
public void write(PrintWriter writer, Janitor janitor)

Implements abstract org.codehaus.groovy.control.messages.Message.write.

Doc from org.codehaus.groovy.control.messages.Message.write.

Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message.