|
||||||||||
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
edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractParseErrorReporter
public abstract class AbstractParseErrorReporter
Base implementation that insures messages counts are updated. Delegates
the actual reporting functionality to the abstract methods
errorImpl(String, int, String)
,
warning(String, int, String)
, and
infoImpl(String, int, String)
.
Constructor Summary | |
---|---|
protected |
AbstractParseErrorReporter()
|
Method Summary | |
---|---|
void |
error(LocationReference loc,
java.lang.String message)
Report an error. |
void |
error(java.lang.String filename,
int line,
java.lang.String message)
Report an error. |
protected abstract void |
errorImpl(java.lang.String filename,
int line,
java.lang.String message)
|
void |
info(LocationReference loc,
java.lang.String message)
Report information about an AADL text file. |
void |
info(java.lang.String filename,
int line,
java.lang.String message)
Report information about an AADL text file.. |
protected abstract void |
infoImpl(java.lang.String filename,
int line,
java.lang.String message)
|
void |
warning(LocationReference loc,
java.lang.String message)
Report a warning about an AADL text file. |
void |
warning(java.lang.String filename,
int line,
java.lang.String message)
Report a warning about an AADL text file.. |
protected abstract void |
warningImpl(java.lang.String filename,
int line,
java.lang.String message)
|
Methods inherited from class edu.cmu.sei.aadl.modelsupport.errorreporting.AbstractErrorReporter |
---|
deleteMessages, deleteMessagesImpl, getNumErrors, getNumInfos, getNumMessages, getNumWarnings, incError, incInfo, incWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.cmu.sei.aadl.modelsupport.errorreporting.ErrorReporter |
---|
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings |
Constructor Detail |
---|
protected AbstractParseErrorReporter()
Method Detail |
---|
public final void error(LocationReference loc, java.lang.String message)
ParseErrorReporter
error
in interface ParseErrorReporter
loc
- The location on which the warning is located.message
- the error messagepublic final void error(java.lang.String filename, int line, java.lang.String message)
ParseErrorReporter
error
in interface ParseErrorReporter
filename
- The file in which the error is located.line
- The line on which the error occured.message
- the error messageprotected abstract void errorImpl(java.lang.String filename, int line, java.lang.String message)
public final void warning(LocationReference loc, java.lang.String message)
ParseErrorReporter
warning
in interface ParseErrorReporter
loc
- The location on which the warning is located.message
- the warning messagepublic final void warning(java.lang.String filename, int line, java.lang.String message)
ParseErrorReporter
warning
in interface ParseErrorReporter
filename
- The file in which the warning is located.line
- The line on which the warning is located.message
- the warning messageprotected abstract void warningImpl(java.lang.String filename, int line, java.lang.String message)
public final void info(LocationReference loc, java.lang.String message)
ParseErrorReporter
info
in interface ParseErrorReporter
loc
- The location on which the information is located.message
- the information messagepublic final void info(java.lang.String filename, int line, java.lang.String message)
ParseErrorReporter
info
in interface ParseErrorReporter
filename
- The file in which the information is located.line
- The line on which the information is located.message
- the information messageprotected abstract void infoImpl(java.lang.String filename, int line, java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |