|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter
public abstract class AbstractErrorReporter
Base implementation that handles tracking messages counts and message
deletion. Delegates the actual message
deletion functionaliy to deleteMessagesImpl()
.
Constructor Summary | |
---|---|
protected |
AbstractErrorReporter()
|
Method Summary | |
---|---|
void |
deleteMessages()
Clear the record of the messages. |
protected abstract void |
deleteMessagesImpl()
|
int |
getNumErrors()
Get the number of parse errors reported using this reporter object since it was created or since the last call to ErrorReporter.deleteMessages() . |
int |
getNumInfos()
Get the number of infos reported using this reporter object since it was created or since the last call to ErrorReporter.deleteMessages() . |
int |
getNumMessages()
Get the number of messages, that is errors, warnings, and information messages, reported using this reporter object since it was created or since the last call to ErrorReporter.deleteMessages() . |
int |
getNumWarnings()
Get the number of warnings reported using this reporter object since it was created or since the last call to ErrorReporter.deleteMessages() . |
protected void |
incError()
|
protected void |
incInfo()
|
protected void |
incWarning()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractErrorReporter()
Method Detail |
---|
public final void deleteMessages()
ErrorReporter
deleteMessages
in interface ErrorReporter
protected abstract void deleteMessagesImpl()
protected final void incError()
public final int getNumErrors()
ErrorReporter
ErrorReporter.deleteMessages()
.
getNumErrors
in interface ErrorReporter
protected final void incWarning()
public final int getNumWarnings()
ErrorReporter
ErrorReporter.deleteMessages()
.
getNumWarnings
in interface ErrorReporter
protected final void incInfo()
public final int getNumInfos()
ErrorReporter
ErrorReporter.deleteMessages()
.
getNumInfos
in interface ErrorReporter
public final int getNumMessages()
ErrorReporter
ErrorReporter.deleteMessages()
.
getNumMessages
in interface ErrorReporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |