org.apache.jdo.impl.jdoql.jdoqlc
Class JDOQLLexer

java.lang.Object
  extended by antlr.CharScanner
      extended by org.apache.jdo.impl.jdoql.jdoqlc.JDOQLLexer
All Implemented Interfaces:
antlr.TokenStream, JDOQLTokenTypes

public class JDOQLLexer
extends antlr.CharScanner
implements JDOQLTokenTypes, antlr.TokenStream

This class defines the lexical analysis for the JDOQL compiler.

Author:
Michael Bouschen

Field Summary
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_2
           
static antlr.collections.impl.BitSet _tokenSet_3
           
static antlr.collections.impl.BitSet _tokenSet_4
           
static antlr.collections.impl.BitSet _tokenSet_5
           
protected static int EOF_CHAR
           
protected  ErrorMsg errorMsg
          The error message support class.
protected static org.apache.jdo.util.I18NHelper msg
          I18N support.
protected static int TABSIZE
          The width of a tab stop.
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
 
Fields inherited from interface org.apache.jdo.impl.jdoql.jdoqlc.JDOQLTokenTypes
AND, ARG_LIST, ASCENDING, ASSIGN, BAND, BAND_ASSIGN, BNOT, BOOLEAN, BOOLEAN_LITERAL, BOR, BOR_ASSIGN, BYTE, BYTE_LITERAL, CANDIDATE_CLASS, CAST, CHAR, CHAR_LITERAL, COLLECTION_EQUAL, COLLECTION_NOT_EQUAL, COMMA, CONCAT, CONSTANT, CONTAINS, DEC, DESCENDING, DIV, DIV_ASSIGN, DOT, DOUBLE, DOUBLE_LITERAL, ENDS_WITH, EOF, EQUAL, ESC, EXPONENT, FALSE, FIELD_ACCESS, FLOAT, FLOAT_LITERAL, FLOATINGPOINT_SUFFIX, GE, GT, HEX_DIGIT, IDENT, IMPORT, IMPORT_ON_DEMAND, INC, INT, INT_LITERAL, IS_EMPTY, LE, LNOT, LONG, LONG_LITERAL, LPAREN, LT, MINUS, MINUS_ASSIGN, NAVIGATION, NEWLINE, NOT_EQUAL, NULL, NULL_TREE_LOOKAHEAD, OBJECT_EQUAL, OBJECT_NOT_EQUAL, OR, PARAMETER_ACCESS, PARAMETER_DECL, PLUS, PLUS_ASSIGN, QUERY_TREE, RPAREN, SEMI, SHORT, SHORT_LITERAL, SL, SR, STAR, STAR_ASSIGN, STARTS_WITH, STATIC_FIELD_ACCESS, STRING_LITERAL, THIS, TRUE, TYPE, UNARY_MINUS, UNARY_PLUS, UNICODE_CHAR, UNICODE_ESCAPE, VARIABLE_ACCESS, VARIABLE_DECL, WS
 
Constructor Summary
JDOQLLexer(antlr.InputBuffer ib)
           
JDOQLLexer(java.io.InputStream in)
           
JDOQLLexer(antlr.LexerSharedInputState state)
           
JDOQLLexer(java.io.Reader in)
           
 
Method Summary
static void handleANTLRException(antlr.ANTLRException ex, ErrorMsg errorMsg)
           
 void init(ErrorMsg errorMsg)
           
 void mAND(boolean _createToken)
           
 void mASSIGN(boolean _createToken)
           
 void mBAND_ASSIGN(boolean _createToken)
           
 void mBAND(boolean _createToken)
           
 void mBNOT(boolean _createToken)
           
 void mBOR_ASSIGN(boolean _createToken)
           
 void mBOR(boolean _createToken)
           
 void mCHAR_LITERAL(boolean _createToken)
           
 void mCOMMA(boolean _createToken)
           
 void mDEC(boolean _createToken)
           
 void mDIV_ASSIGN(boolean _createToken)
           
 void mDIV(boolean _createToken)
           
 void mEQUAL(boolean _createToken)
           
protected  void mESC(boolean _createToken)
           
protected  void mEXPONENT(boolean _createToken)
           
protected  int mFLOATINGPOINT_SUFFIX(boolean _createToken)
           
 void mGE(boolean _createToken)
           
 void mGT(boolean _createToken)
           
protected  void mHEX_DIGIT(boolean _createToken)
           
 void mIDENT(boolean _createToken)
           
 void mINC(boolean _createToken)
           
 void mINT_LITERAL(boolean _createToken)
           
 void mLE(boolean _createToken)
           
 void mLNOT(boolean _createToken)
           
 void mLPAREN(boolean _createToken)
           
 void mLT(boolean _createToken)
           
 void mMINUS_ASSIGN(boolean _createToken)
           
 void mMINUS(boolean _createToken)
           
 void mNEWLINE(boolean _createToken)
           
 void mNOT_EQUAL(boolean _createToken)
           
 void mOR(boolean _createToken)
           
 void mPLUS_ASSIGN(boolean _createToken)
           
 void mPLUS(boolean _createToken)
           
 void mRPAREN(boolean _createToken)
           
 void mSEMI(boolean _createToken)
           
 void mSL(boolean _createToken)
           
 void mSR(boolean _createToken)
           
 void mSTAR_ASSIGN(boolean _createToken)
           
 void mSTAR(boolean _createToken)
           
 void mSTRING_LITERAL(boolean _createToken)
           
protected  void mUNICODE_ESCAPE(boolean _createToken)
           
 void mWS(boolean _createToken)
           
 antlr.Token nextToken()
           
 void reportError(int line, int column, java.lang.String s)
           
 void reportError(antlr.RecognitionException e)
          Report lexer exception errors caught in nextToken()
 void reportError(java.lang.String s)
          Lexer error-reporting function
 void reportWarning(java.lang.String s)
          Lexer warning-reporting function
 void tab()
           
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, makeToken, mark, match, match, match, matchNot, matchRange, newline, panic, panic, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorMsg

protected ErrorMsg errorMsg
The error message support class.


TABSIZE

protected static final int TABSIZE
The width of a tab stop.

See Also:
Constant Field Values

EOF_CHAR

protected static final int EOF_CHAR
See Also:
Constant Field Values

msg

protected static final org.apache.jdo.util.I18NHelper msg
I18N support.


_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0

_tokenSet_1

public static final antlr.collections.impl.BitSet _tokenSet_1

_tokenSet_2

public static final antlr.collections.impl.BitSet _tokenSet_2

_tokenSet_3

public static final antlr.collections.impl.BitSet _tokenSet_3

_tokenSet_4

public static final antlr.collections.impl.BitSet _tokenSet_4

_tokenSet_5

public static final antlr.collections.impl.BitSet _tokenSet_5
Constructor Detail

JDOQLLexer

public JDOQLLexer(java.io.InputStream in)

JDOQLLexer

public JDOQLLexer(java.io.Reader in)

JDOQLLexer

public JDOQLLexer(antlr.InputBuffer ib)

JDOQLLexer

public JDOQLLexer(antlr.LexerSharedInputState state)
Method Detail

init

public void init(ErrorMsg errorMsg)

tab

public void tab()
Overrides:
tab in class antlr.CharScanner

reportError

public void reportError(int line,
                        int column,
                        java.lang.String s)

reportError

public void reportError(antlr.RecognitionException e)
Report lexer exception errors caught in nextToken()

Overrides:
reportError in class antlr.CharScanner

reportError

public void reportError(java.lang.String s)
Lexer error-reporting function

Overrides:
reportError in class antlr.CharScanner

reportWarning

public void reportWarning(java.lang.String s)
Lexer warning-reporting function

Overrides:
reportWarning in class antlr.CharScanner

handleANTLRException

public static void handleANTLRException(antlr.ANTLRException ex,
                                        ErrorMsg errorMsg)

nextToken

public antlr.Token nextToken()
                      throws antlr.TokenStreamException
Specified by:
nextToken in interface antlr.TokenStream
Throws:
antlr.TokenStreamException

mLPAREN

public final void mLPAREN(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mRPAREN

public final void mRPAREN(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mCOMMA

public final void mCOMMA(boolean _createToken)
                  throws antlr.RecognitionException,
                         antlr.CharStreamException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mASSIGN

public final void mASSIGN(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mEQUAL

public final void mEQUAL(boolean _createToken)
                  throws antlr.RecognitionException,
                         antlr.CharStreamException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mLNOT

public final void mLNOT(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mBNOT

public final void mBNOT(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mNOT_EQUAL

public final void mNOT_EQUAL(boolean _createToken)
                      throws antlr.RecognitionException,
                             antlr.CharStreamException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mDIV

public final void mDIV(boolean _createToken)
                throws antlr.RecognitionException,
                       antlr.CharStreamException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mDIV_ASSIGN

public final void mDIV_ASSIGN(boolean _createToken)
                       throws antlr.RecognitionException,
                              antlr.CharStreamException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mPLUS

public final void mPLUS(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mPLUS_ASSIGN

public final void mPLUS_ASSIGN(boolean _createToken)
                        throws antlr.RecognitionException,
                               antlr.CharStreamException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mINC

public final void mINC(boolean _createToken)
                throws antlr.RecognitionException,
                       antlr.CharStreamException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mMINUS

public final void mMINUS(boolean _createToken)
                  throws antlr.RecognitionException,
                         antlr.CharStreamException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mMINUS_ASSIGN

public final void mMINUS_ASSIGN(boolean _createToken)
                         throws antlr.RecognitionException,
                                antlr.CharStreamException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mDEC

public final void mDEC(boolean _createToken)
                throws antlr.RecognitionException,
                       antlr.CharStreamException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSTAR

public final void mSTAR(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSTAR_ASSIGN

public final void mSTAR_ASSIGN(boolean _createToken)
                        throws antlr.RecognitionException,
                               antlr.CharStreamException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSR

public final void mSR(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mGE

public final void mGE(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mGT

public final void mGT(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSL

public final void mSL(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mLE

public final void mLE(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mLT

public final void mLT(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mBOR

public final void mBOR(boolean _createToken)
                throws antlr.RecognitionException,
                       antlr.CharStreamException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mBOR_ASSIGN

public final void mBOR_ASSIGN(boolean _createToken)
                       throws antlr.RecognitionException,
                              antlr.CharStreamException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mOR

public final void mOR(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mBAND

public final void mBAND(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mBAND_ASSIGN

public final void mBAND_ASSIGN(boolean _createToken)
                        throws antlr.RecognitionException,
                               antlr.CharStreamException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mAND

public final void mAND(boolean _createToken)
                throws antlr.RecognitionException,
                       antlr.CharStreamException,
                       antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSEMI

public final void mSEMI(boolean _createToken)
                 throws antlr.RecognitionException,
                        antlr.CharStreamException,
                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mWS

public final void mWS(boolean _createToken)
               throws antlr.RecognitionException,
                      antlr.CharStreamException,
                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mNEWLINE

public final void mNEWLINE(boolean _createToken)
                    throws antlr.RecognitionException,
                           antlr.CharStreamException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mCHAR_LITERAL

public final void mCHAR_LITERAL(boolean _createToken)
                         throws antlr.RecognitionException,
                                antlr.CharStreamException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mESC

protected final void mESC(boolean _createToken)
                   throws antlr.RecognitionException,
                          antlr.CharStreamException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mSTRING_LITERAL

public final void mSTRING_LITERAL(boolean _createToken)
                           throws antlr.RecognitionException,
                                  antlr.CharStreamException,
                                  antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mHEX_DIGIT

protected final void mHEX_DIGIT(boolean _createToken)
                         throws antlr.RecognitionException,
                                antlr.CharStreamException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mINT_LITERAL

public final void mINT_LITERAL(boolean _createToken)
                        throws antlr.RecognitionException,
                               antlr.CharStreamException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mEXPONENT

protected final void mEXPONENT(boolean _createToken)
                        throws antlr.RecognitionException,
                               antlr.CharStreamException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mFLOATINGPOINT_SUFFIX

protected final int mFLOATINGPOINT_SUFFIX(boolean _createToken)
                                   throws antlr.RecognitionException,
                                          antlr.CharStreamException,
                                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mIDENT

public final void mIDENT(boolean _createToken)
                  throws antlr.RecognitionException,
                         antlr.CharStreamException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException

mUNICODE_ESCAPE

protected final void mUNICODE_ESCAPE(boolean _createToken)
                              throws antlr.RecognitionException,
                                     antlr.CharStreamException,
                                     antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.CharStreamException
antlr.TokenStreamException


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.