public class LocatedMessage
extends SimpleMessage
A base class for compilation messages.
| Fields inherited from class | Fields |
|---|---|
class SimpleMessage |
data, message, owner |
| Constructor and description |
|---|
LocatedMessage(String message, CSTNode context, SourceUnit source)Creates a located message with the supplied text. |
LocatedMessage(String message, Object data, CSTNode context, SourceUnit source)Creates a located message with supplemental data. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public CSTNode |
getContext()Returns the CST node that identifies the message location. |
|
public void |
write(PrintWriter writer, Janitor janitor)Writes the message together with source-location information. |
| Methods inherited from class | Name |
|---|---|
class SimpleMessage |
getMessage, write |
class Message |
create, create, create, write, write |
Creates a located message with the supplied text.
message - the message textcontext - the source locationsource - the owning source unitCreates a located message with supplemental data.
message - the message textdata - supplemental message datacontext - the source locationsource - the owning source unitReturns the CST node that identifies the message location.
Writes the message together with source-location information.
writer - the destination writerjanitor - the cleanup helper for temporary source accessCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.