|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaitools.jiffle.parser.MessageTable
public class MessageTable
Used by Jiffle parsers to record errors and warnings.
| Constructor Summary | |
|---|---|
MessageTable()
|
|
| Method Summary | |
|---|---|
void |
add(String varName,
Message code)
Adds a message. |
Map<String,List<Message>> |
getMessages()
Gets all messages. |
boolean |
hasErrors()
Checks if this table contains any error messages. |
boolean |
hasWarnings()
Checks if this table contains any warning messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageTable()
| Method Detail |
|---|
public void add(String varName,
Message code)
varName - the variable that the message relates tocode - the message codepublic boolean hasErrors()
true if errors are present, false otherwisepublic boolean hasWarnings()
true if warnings are present, false otherwisepublic Map<String,List<Message>> getMessages()
Map has variable names
as keys and Lists of messages as values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||