com.sun.jdo.spi.persistence.support.ejb.ejbqlc
Class EJBQLLexer

java.lang.Object
  extended by antlr.CharScanner
      extended by com.sun.jdo.spi.persistence.support.ejb.ejbqlc.EJBQLLexer
All Implemented Interfaces:
antlr.TokenStream, EJBQLTokenTypes

public class EJBQLLexer
extends antlr.CharScanner
implements EJBQLTokenTypes, antlr.TokenStream

This class defines the lexical analysis for the EJBQL compiler.

Author:
Michael Bouschen, Shing Wai Chan

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 static java.util.ResourceBundle msgs
          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 com.sun.jdo.spi.persistence.support.ejb.ejbqlc.EJBQLTokenTypes
ABS, ABSTRACT_SCHEMA_NAME, AND, AS, ASC, AVG, BETWEEN, BY, CMP_FIELD, CMP_FIELD_ACCESS, COLLECTION_CMR_FIELD, COLLECTION_CMR_FIELD_ACCESS, COMMA, CONCAT, COUNT, DESC, DISTINCT, DIV, DOT, DOUBLE_LITERAL, EMPTY, EOF, EQUAL, ESC, ESCAPE, EXPONENT, FALSE, FLOAT_LITERAL, FLOAT_SUFFIX, FLOATINGPOINT_SUFFIX, FROM, GE, GT, HEX_DIGIT, IDENT, IDENTIFICATION_VAR, IDENTIFICATION_VAR_DECL, IN, INPUT_PARAMETER, INT_LITERAL, IS, LE, LENGTH, LIKE, LOCATE, LONG_LITERAL, LPAREN, LT, MAX, MEMBER, MIN, MINUS, MOD, NEWLINE, NOT, NOT_BETWEEN, NOT_EMPTY, NOT_EQUAL, NOT_IN, NOT_LIKE, NOT_MEMBER, NOT_NULL, NULL, NULL_TREE_LOOKAHEAD, OBJECT, OF, OR, ORDER, PLUS, QUERY, RANGE, RPAREN, SELECT, SINGLE_CMR_FIELD, SINGLE_CMR_FIELD_ACCESS, SQRT, STAR, STRING_LITERAL, SUBSTRING, SUM, TRUE, UNARY_MINUS, UNARY_PLUS, UNICODE_DIGIT, UNICODE_ESCAPE, UNICODE_STR, UNKNOWN, WHERE, WS
 
Constructor Summary
EJBQLLexer(antlr.InputBuffer ib)
           
EJBQLLexer(java.io.InputStream in)
           
EJBQLLexer(antlr.LexerSharedInputState state)
           
EJBQLLexer(java.io.Reader in)
           
 
Method Summary
static void handleANTLRException(antlr.ANTLRException ex)
           
 void mCOMMA(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 mINPUT_PARAMETER(boolean _createToken)
           
 void mINT_LITERAL(boolean _createToken)
           
 void mLE(boolean _createToken)
           
 void mLPAREN(boolean _createToken)
           
 void mLT(boolean _createToken)
           
 void mMINUS(boolean _createToken)
           
 void mNEWLINE(boolean _createToken)
           
 void mNOT_EQUAL(boolean _createToken)
           
 void mPLUS(boolean _createToken)
           
 void mRPAREN(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

TABSIZE

protected static final int TABSIZE
The width of a tab stop. This value is used to calculate the correct column in a line conatining a tab character.

See Also:
Constant Field Values

EOF_CHAR

protected static final int EOF_CHAR
See Also:
Constant Field Values

msgs

protected static final java.util.ResourceBundle msgs
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

EJBQLLexer

public EJBQLLexer(java.io.InputStream in)

EJBQLLexer

public EJBQLLexer(java.io.Reader in)

EJBQLLexer

public EJBQLLexer(antlr.InputBuffer ib)

EJBQLLexer

public EJBQLLexer(antlr.LexerSharedInputState state)
Method Detail

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)

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

mEQUAL

public final void mEQUAL(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

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

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

mPLUS

public final void mPLUS(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

mMINUS

public final void mMINUS(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

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

mINPUT_PARAMETER

public final void mINPUT_PARAMETER(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

mESC

protected final void mESC(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 © 2012 GlassFish Community. All Rights Reserved.