Class DefaultParseListener
java.lang.Object
com.aquima.interactions.expressions.definition.DefaultParseListener
- All Implemented Interfaces:
IParseListener
This is the default parse listener which outputs it's parse errors to the logging system.
- Since:
- 6.0
- Author:
- F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultParseListener
(String expression) Constructs the parse listener with the expression that will be monitored. -
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
-
DefaultParseListener
Constructs the parse listener with the expression that will be monitored.- Parameters:
expression
- The expression that is to be parsed.
-
-
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.
-