edu.cmu.sei.aadl.modelsupport.errorreporting
Interface ParseErrorReporter

All Superinterfaces:
ErrorReporter
All Known Implementing Classes:
AbstractParseErrorReporter, ChainedParseErrorReporter, LogParseErrorReporter, MarkerParseErrorReporter, NullParseErrorReporter, QueuingParserErrorReporter, WriterParseErrorReporter

public interface ParseErrorReporter
extends ErrorReporter

Interface defining the abstract operations required to report errors during the parsing and interpretation of an AADL text file. Meant to be used during the creation of an AAXL object model from an AADL text file. There are no methods in this interface that are appropriate for reporting errors on an object model; for that use edu.cmu.sei.aadl.model.pluginsupport.AnalysisErrorReporter.

In general, objects of classes that implement this interface are meant to be obtained using implementations of edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporterFactory.

Author:
aarong
See Also:
edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporterFactory, edu.cmu.sei.aadl.model.pluginsupport.ParseErrorReporterManager

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.
 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..
 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..
 
Methods inherited from interface edu.cmu.sei.aadl.modelsupport.errorreporting.ErrorReporter
deleteMessages, getNumErrors, getNumInfos, getNumMessages, getNumWarnings
 

Method Detail

error

void error(LocationReference loc,
           java.lang.String message)
Report an error.

Parameters:
loc - The location on which the warning is located.
message - the error message

error

void error(java.lang.String filename,
           int line,
           java.lang.String message)
Report an error.

Parameters:
filename - The file in which the error is located.
line - The line on which the error occured.
message - the error message

warning

void warning(LocationReference loc,
             java.lang.String message)
Report a warning about an AADL text file.

Parameters:
loc - The location on which the warning is located.
message - the warning message

warning

void warning(java.lang.String filename,
             int line,
             java.lang.String message)
Report a warning about an AADL text file..

Parameters:
filename - The file in which the warning is located.
line - The line on which the warning is located.
message - the warning message

info

void info(LocationReference loc,
          java.lang.String message)
Report information about an AADL text file.

Parameters:
loc - The location on which the information is located.
message - the information message

info

void info(java.lang.String filename,
          int line,
          java.lang.String message)
Report information about an AADL text file..

Parameters:
filename - The file in which the information is located.
line - The line on which the information is located.
message - the information message