Class ReportingParseListener
java.lang.Object
com.aquima.interactions.expressions.ReportingParseListener
- All Implemented Interfaces:
IParseListener
Parse listener implementation that forwards the messages to a reporting data-source.
- Since:
- 6.4
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionReportingParseListener
(IReportingDS reportingDS) Constructs the parse listener with the data-source that should be used. -
Method Summary
Modifier and TypeMethodDescriptionvoid
report
(int startPosition, int endPosition, ErrorMessage message, Severity severity) This method is invoked by the parser when a problem is detected during the parse of an expression.
-
Constructor Details
-
ReportingParseListener
Constructs the parse listener with the data-source that should be used.- Parameters:
reportingDS
- Data source that should be used to forward the messages to.
-
-
Method Details
-
report
Description copied from interface:IParseListener
This method is invoked by the parser when a problem is detected during the parse of an expression.- Specified by:
report
in interfaceIParseListener
- Parameters:
startPosition
- The start position in the expression where the warning was detected.endPosition
- The end position in the expression of the part that generated the warning.message
- Object containing the details of the warning that was detected.severity
- The severity of the problem that was detected.
-