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

Public Member Functions

int checkFunctionAsID (int proposedType)
 MySQLLexer (CharStream input)
 MySQLLexer (CharStream input, RecognizerSharedState state)
void setErrorListener (ErrorListener listener)
ErrorListener getErrorListener ()
void displayRecognitionError (String[] tokenNames, RecognitionException e)
String getErrorHeader (RecognitionException e)
void emitErrorMessage (String msg)
String getErrorMessage (RecognitionException re, String[] tokenNames)
void reportError (RecognitionException e)
void originalDisplayError (String[] tokenNames, RecognitionException e)
void originalReportError (RecognitionException e)
String originalGetErrorHeader (RecognitionException e)
String originalGetErrorMessage (RecognitionException e, String[] tokenNames)
void originalEmitErrorMessage (String msg)

Detailed Description

Abstract superclass for MySQL Lexers, for now containing some common code, so it's not in the grammar. Author: kroepke

Definition at line 34 of file MySQLLexer.java.

Member Function Documentation

int com.mysql.clusterj.jdbc.antlr.MySQLLexer.checkFunctionAsID ( int  proposedType)
inline

Check ahead in the input stream for a left paren to distinguish between built-in functions and identifiers. TODO: This is the place to support certain SQL modes.

Parameters
proposedTypethe original token type for this input.
Returns
the new token type to emit a token with

Definition at line 49 of file MySQLLexer.java.

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

Delegate error presentation to our errorListener if that's set, otherwise pass up the chain.

Definition at line 74 of file MySQLLexer.java.

Here is the call graph for this function:


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