public class SimpleMessage
extends Message
A base class for compilation messages.
| Constructor and description |
|---|
SimpleMessage(String message, ProcessingUnit owner)Creates a simple message with no auxiliary data. |
SimpleMessage(String message, Object data, ProcessingUnit owner)Creates a simple message with optional auxiliary data. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public String |
getMessage()Returns the message text. |
|
public void |
write(PrintWriter writer, Janitor janitor)Writes this message, prefixing it with the source name when available. |
Message text to render.
Processing unit that owns the message.
Creates a simple message with no auxiliary data.
message - the message textowner - the owning processing unitCreates a simple message with optional auxiliary data.
message - the message textdata - supplemental message dataowner - the owning processing unitReturns the message text.
Writes this message, prefixing it with the source name when available.
writer - the destination writerjanitor - the cleanup helper for temporary source accessCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.