public class Message extends Object implements Comparable<Message>
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.Severity
Severity level.
|
static class |
Message.Status
Message kind.
|
| Constructor and Description |
|---|
Message(AbstractNode node,
Message.Status status,
String msg,
Message.Severity severity,
boolean use_source_location)
Constructs a new message.
|
Message(AbstractNode node,
Message.Status status,
String key,
String msg,
Message.Severity severity)
Constructs a new message.
|
Message(AbstractNode node,
Message.Status status,
String key,
String msg,
Message.Severity severity,
boolean use_source_location)
Constructs a new message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Message e)
Compares this and the given message.
|
boolean |
equals(Object obj)
Checks whether this message is equal to the given.
|
String |
getMessage()
Returns the message text.
|
AbstractNode |
getNode()
Returns the node associated with this message.
|
Message.Severity |
getSeverity()
Returns the message severity level.
|
Message.Status |
getStatus()
Returns the message status.
|
int |
hashCode()
Returns a hash code for this message.
|
void |
join(Message other)
Joins the given message into this message.
|
String |
toString()
Returns a string description of this message.
|
public Message(AbstractNode node, Message.Status status, String msg, Message.Severity severity, boolean use_source_location)
node - flow graph nodestatus - message statusmsg - the message, also used as keyseverity - severity leveluse_source_location - if set, use node source location instead of node identity in equals/hashCodepublic Message(AbstractNode node, Message.Status status, String key, String msg, Message.Severity severity)
node - flow graph nodestatus - message statuskey - message key for comparisonsmsg - the messageseverity - severity levelpublic Message(AbstractNode node, Message.Status status, String key, String msg, Message.Severity severity, boolean use_source_location)
node - flow graph nodestatus - message statuskey - message key for comparisonsmsg - the messageseverity - severity leveluse_source_location - if set, use node source location instead of node identity in equals/hashCodepublic int compareTo(Message e)
compareTo in interface Comparable<Message>public boolean equals(Object obj)
public String getMessage()
public AbstractNode getNode()
public Message.Severity getSeverity()
public Message.Status getStatus()
public int hashCode()
public void join(Message other)
Copyright © 2012 Aarhus University