|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.smc.SmcMessage
public final class SmcMessage
Stores a warning or error message, the line number is occurred on and the FSM's name. The parser and syntax check no longer output errors directly. Instead they store them in a list and the calling application decides how to present these messages.
Field Summary | |
---|---|
static int |
ERROR
An error-level message (1). |
static int |
WARNING
A warning-level message (0). |
Constructor Summary | |
---|---|
SmcMessage(java.lang.String name,
int lineNumber,
int level,
java.lang.String text)
Creates a message for the given FSM, line number, level and text. |
Method Summary | |
---|---|
int |
getLevel()
Returns the message level, either WARNING or
ERROR . |
int |
getLineNumber()
Returns the line number. |
java.lang.String |
getName()
Returns the finite state machine's name. |
java.lang.String |
getText()
Returns the message text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WARNING
public static final int ERROR
Constructor Detail |
---|
public SmcMessage(java.lang.String name, int lineNumber, int level, java.lang.String text)
name
- the finite state machine's name.lineNumber
- the error's line number.level
- the message level. Must be either
WARNING
or ERROR
.text
- the message text.
java.lang.NullPointerException
- if either name
or text
is
null
.
java.lang.IllegalArgumentException
- if:
Method Detail |
---|
public java.lang.String getName()
public int getLineNumber()
public int getLevel()
WARNING
or
ERROR
.
public java.lang.String getText()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |