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.QueuingErrorListener Class Reference
Inheritance diagram for com.mysql.clusterj.jdbc.antlr.QueuingErrorListener:
Collaboration diagram for com.mysql.clusterj.jdbc.antlr.QueuingErrorListener:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from com.mysql.clusterj.jdbc.antlr.BaseErrorListener
final RecognizerErrorDelegate recognizerErrorDelegate
boolean seenErrors = false

Detailed Description

Author: kroepke

Definition at line 29 of file QueuingErrorListener.java.

Member Function Documentation

void com.mysql.clusterj.jdbc.antlr.QueuingErrorListener.displayRecognitionError ( String[]  tokenNames,
RecognitionException  e 
)
inline

Do not display any errors, but queue them up to inspect at a later stage. Useful for writing tests that look for RecognitionExceptions.

Parameters
tokenNames
e

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

Definition at line 48 of file QueuingErrorListener.java.

void com.mysql.clusterj.jdbc.antlr.QueuingErrorListener.emitErrorMessage ( String  msg)
inline

Redirects an error message to the appropriate place, relying on the other methods to actually produce a message

Parameters
msgPreformatted error message

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

Definition at line 55 of file QueuingErrorListener.java.

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

Retrieve the list of errors occurred.

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

Reimplemented from com.mysql.clusterj.jdbc.antlr.BaseErrorListener.

Definition at line 77 of file QueuingErrorListener.java.

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

Check whether errors have occurred during recognition.

Returns
true if errors have occurred

Reimplemented from com.mysql.clusterj.jdbc.antlr.BaseErrorListener.

Definition at line 61 of file QueuingErrorListener.java.


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