MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.jdbc.antlr.BaseErrorListener Class Reference
Inheritance diagram for com.mysql.clusterj.jdbc.antlr.BaseErrorListener:
Collaboration diagram for com.mysql.clusterj.jdbc.antlr.BaseErrorListener:

Public Member Functions

 BaseErrorListener (final RecognizerErrorDelegate recognizerErrorDelegate)
void displayRecognitionError (final String[] tokenNames, final RecognitionException e)
void reportError (final RecognitionException e)
String getErrorHeader (final RecognitionException e)
String getErrorMessage (final RecognitionException e, final String[] tokenNames)
void emitErrorMessage (final String msg)
boolean hasErrors ()
List< RecognitionException > getErrors ()
- Public Member Functions inherited from com.mysql.clusterj.jdbc.antlr.ErrorListener
void displayRecognitionError (String[] tokenNames, RecognitionException e)
void reportError (RecognitionException e)
String getErrorHeader (RecognitionException e)
String getErrorMessage (RecognitionException e, String[] tokenNames)
void emitErrorMessage (String msg)

Protected Attributes

final RecognizerErrorDelegate recognizerErrorDelegate
boolean seenErrors = false

Detailed Description

Default implementation of an ErrorListener that simply delegates all error reporting back to the Recognizer it came from. Author: kroepke

Definition at line 29 of file BaseErrorListener.java.

Member Function Documentation

List<RecognitionException> com.mysql.clusterj.jdbc.antlr.BaseErrorListener.getErrors ( )
inline

Retrieve the list of errors occurred.

Returns
Might be null for ErrorListeners that don't queue up errors.

Implements com.mysql.clusterj.jdbc.antlr.ErrorListener.

Reimplemented in com.mysql.clusterj.jdbc.antlr.QueuingErrorListener.

Definition at line 66 of file BaseErrorListener.java.

boolean com.mysql.clusterj.jdbc.antlr.BaseErrorListener.hasErrors ( )
inline

Check whether errors have occurred during recognition.

Returns
true if errors have occurred

Implements com.mysql.clusterj.jdbc.antlr.ErrorListener.

Reimplemented in com.mysql.clusterj.jdbc.antlr.QueuingErrorListener.

Definition at line 62 of file BaseErrorListener.java.


The documentation for this class was generated from the following file: