Class EJBQLLexer
java.lang.Object
antlr.CharScanner
com.sun.jdo.spi.persistence.support.ejb.ejbqlc.EJBQLLexer
- All Implemented Interfaces:
antlr.TokenStream,EJBQLTokenTypes
This class defines the lexical analysis for the EJBQL compiler.
- Author:
- Michael Bouschen, Shing Wai Chan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetprotected static final intprotected static final ResourceBundleI18N support.protected static final intThe width of a tab stop.Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepthFields 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
ConstructorsConstructorDescriptionEJBQLLexer(antlr.InputBuffer ib) EJBQLLexer(antlr.LexerSharedInputState state) EJBQLLexer(Reader in) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleANTLRException(antlr.ANTLRException ex) final voidmCOMMA(boolean _createToken) final voidmDIV(boolean _createToken) final voidmEQUAL(boolean _createToken) protected final voidmESC(boolean _createToken) protected final voidmEXPONENT(boolean _createToken) protected final intmFLOATINGPOINT_SUFFIX(boolean _createToken) final voidmGE(boolean _createToken) final voidmGT(boolean _createToken) protected final voidmHEX_DIGIT(boolean _createToken) final voidmIDENT(boolean _createToken) final voidmINPUT_PARAMETER(boolean _createToken) final voidmINT_LITERAL(boolean _createToken) final voidmLE(boolean _createToken) final voidmLPAREN(boolean _createToken) final voidmLT(boolean _createToken) final voidmMINUS(boolean _createToken) final voidmNEWLINE(boolean _createToken) final voidmNOT_EQUAL(boolean _createToken) final voidmPLUS(boolean _createToken) final voidmRPAREN(boolean _createToken) final voidmSTAR(boolean _createToken) final voidmSTRING_LITERAL(boolean _createToken) protected final voidmUNICODE_ESCAPE(boolean _createToken) final voidmWS(boolean _createToken) antlr.TokenvoidreportError(int line, int column, String s) voidreportError(antlr.RecognitionException e) Report lexer exception errors caught in nextToken().voidLexer error-reporting function.voidLexer warning-reporting function.voidtab()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
-
Field Details
-
TABSIZE
protected static final int TABSIZEThe width of a tab stop. This value is used to calculate the correct column in a line conatining a tab character.- See Also:
-
EOF_CHAR
protected static final int EOF_CHAR- See Also:
-
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 Details
-
EJBQLLexer
-
EJBQLLexer
-
EJBQLLexer
public EJBQLLexer(antlr.InputBuffer ib)
-
-
Method Details
-
tab
public void tab()- Overrides:
tabin classantlr.CharScanner
-
reportError
-
reportError
public void reportError(antlr.RecognitionException e) Report lexer exception errors caught in nextToken().- Overrides:
reportErrorin classantlr.CharScanner
-
reportError
Lexer error-reporting function.- Overrides:
reportErrorin classantlr.CharScanner
-
reportWarning
Lexer warning-reporting function.- Overrides:
reportWarningin classantlr.CharScanner
-
handleANTLRException
public static void handleANTLRException(antlr.ANTLRException ex) -
nextToken
public antlr.Token nextToken() throws antlr.TokenStreamException- Specified by:
nextTokenin interfaceantlr.TokenStream- Throws:
antlr.TokenStreamException
-
mLPAREN
public final void mLPAREN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mRPAREN
public final void mRPAREN(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mCOMMA
public final void mCOMMA(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mEQUAL
public final void mEQUAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mNOT_EQUAL
public final void mNOT_EQUAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mGE
public final void mGE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mGT
public final void mGT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mLE
public final void mLE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mLT
public final void mLT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mPLUS
public final void mPLUS(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mDIV
public final void mDIV(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mMINUS
public final void mMINUS(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mSTAR
public final void mSTAR(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mWS
public final void mWS(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mNEWLINE
public final void mNEWLINE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mINPUT_PARAMETER
public final void mINPUT_PARAMETER(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mSTRING_LITERAL
public final void mSTRING_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mESC
protected final void mESC(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mHEX_DIGIT
protected final void mHEX_DIGIT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mINT_LITERAL
public final void mINT_LITERAL(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mEXPONENT
protected final void mEXPONENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mFLOATINGPOINT_SUFFIX
protected final int mFLOATINGPOINT_SUFFIX(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mIDENT
public final void mIDENT(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-
mUNICODE_ESCAPE
protected final void mUNICODE_ESCAPE(boolean _createToken) throws antlr.RecognitionException, antlr.CharStreamException, antlr.TokenStreamException - Throws:
antlr.RecognitionExceptionantlr.CharStreamExceptionantlr.TokenStreamException
-