org.apache.ojb.odmg.oql
Class OQLLexer

java.lang.Object
  extended by antlr.CharScanner
      extended by org.apache.ojb.odmg.oql.OQLLexer
All Implemented Interfaces:
antlr.TokenStream, OQLLexerTokenTypes

public class OQLLexer
extends antlr.CharScanner
implements OQLLexerTokenTypes, antlr.TokenStream

This OQL grammar has been derived from a OQL sample grammar from the ODMG WebSite. The original grammar is copyright protected by MicroData Base Systems: Copyright (c) 1999 Micro Data Base Systems, Inc. All rights reserved. The original grammar has been modified to fit into the OJB Persistence Managment System. Modifications done by Ch. Rath, Th. Mahler, S. Harris and many others. This grammar can be used to build an OQL Parser with the ANTLR Parser construction set. The grammar defines a Parser that translates valid OQL Strings into ojb.broker.query.Query Objects. These query objects can be used to perform database queries by means of the OJB PersistenceBroker.

Version:
$Id: OQLLexer.java 364903 2005-08-17 13:54:37Z aclute $
See Also:
for implementation details.

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
           
static antlr.collections.impl.BitSet _tokenSet_6
           
 
Fields inherited from class antlr.CharScanner
EOF_CHAR
 
Fields inherited from interface org.apache.ojb.odmg.oql.OQLLexerTokenTypes
CharLiteral, CommentLine, EOF, Identifier, LITERAL_and, LITERAL_asc, LITERAL_between, LITERAL_by, LITERAL_date, LITERAL_desc, LITERAL_distinct, LITERAL_exists, LITERAL_false, LITERAL_from, LITERAL_group, LITERAL_in, LITERAL_is_defined, LITERAL_is_undefined, LITERAL_like, LITERAL_list, LITERAL_nil, LITERAL_not, LITERAL_or, LITERAL_order, LITERAL_prefetch, LITERAL_select, LITERAL_time, LITERAL_timestamp, LITERAL_true, LITERAL_where, MultiLineComment, NameCharacter, NameFirstCharacter, NewLine, NULL_TREE_LOOKAHEAD, StringLiteral, TOK_APPROXIMATE_NUMERIC_LITERAL, TOK_COLON, TOK_COMMA, TOK_CONCAT, TOK_DOLLAR, TOK_DOT, TOK_EQ, TOK_EXACT_NUMERIC_LITERAL, TOK_GE, TOK_GT, TOK_INDIRECT, TOK_LBRACK, TOK_LE, TOK_LPAREN, TOK_LT, TOK_MINUS, TOK_NE, TOK_NE2, TOK_PLUS, TOK_RBRACK, TOK_RPAREN, TOK_SEMIC, TOK_SLASH, TOK_STAR, TOK_UNSIGNED_INTEGER, WhiteSpace
 
Constructor Summary
OQLLexer(antlr.InputBuffer ib)
           
OQLLexer(java.io.InputStream in)
           
OQLLexer(antlr.LexerSharedInputState state)
           
OQLLexer(java.io.Reader in)
           
 
Method Summary
 void mCharLiteral(boolean _createToken)
           
 void mCommentLine(boolean _createToken)
           
 void mIdentifier(boolean _createToken)
           
 void mMultiLineComment(boolean _createToken)
           
 void mNewLine(boolean _createToken)
           
 void mStringLiteral(boolean _createToken)
           
 void mTOK_COLON(boolean _createToken)
           
 void mTOK_COMMA(boolean _createToken)
           
 void mTOK_CONCAT(boolean _createToken)
           
 void mTOK_DOLLAR(boolean _createToken)
           
 void mTOK_DOT(boolean _createToken)
           
 void mTOK_EQ(boolean _createToken)
           
 void mTOK_EXACT_NUMERIC_LITERAL(boolean _createToken)
           
 void mTOK_GE(boolean _createToken)
           
 void mTOK_GT(boolean _createToken)
           
 void mTOK_INDIRECT(boolean _createToken)
           
 void mTOK_LBRACK(boolean _createToken)
           
 void mTOK_LE(boolean _createToken)
           
 void mTOK_LPAREN(boolean _createToken)
           
 void mTOK_LT(boolean _createToken)
           
 void mTOK_MINUS(boolean _createToken)
           
 void mTOK_NE(boolean _createToken)
           
 void mTOK_NE2(boolean _createToken)
           
 void mTOK_PLUS(boolean _createToken)
           
 void mTOK_RBRACK(boolean _createToken)
           
 void mTOK_RPAREN(boolean _createToken)
           
 void mTOK_SEMIC(boolean _createToken)
           
 void mTOK_SLASH(boolean _createToken)
           
 void mTOK_STAR(boolean _createToken)
           
 void mWhiteSpace(boolean _createToken)
           
 antlr.Token nextToken()
           
 
Methods inherited from class antlr.CharScanner
append, append, commit, consume, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, LA, mark, match, match, match, matchNot, matchRange, newline, panic, panic, reportError, reportError, reportWarning, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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

_tokenSet_6

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

OQLLexer

public OQLLexer(java.io.InputStream in)

OQLLexer

public OQLLexer(java.io.Reader in)

OQLLexer

public OQLLexer(antlr.InputBuffer ib)

OQLLexer

public OQLLexer(antlr.LexerSharedInputState state)
Method Detail

nextToken

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

mTOK_RPAREN

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

mTOK_LPAREN

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

mTOK_COMMA

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

mTOK_SEMIC

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

mTOK_COLON

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

mTOK_DOT

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

mTOK_INDIRECT

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

mTOK_CONCAT

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

mTOK_EQ

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

mTOK_PLUS

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

mTOK_MINUS

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

mTOK_SLASH

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

mTOK_STAR

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

mTOK_LE

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

mTOK_GE

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

mTOK_NE

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

mTOK_NE2

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

mTOK_LT

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

mTOK_GT

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

mTOK_LBRACK

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

mTOK_RBRACK

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

mTOK_DOLLAR

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

mIdentifier

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

mTOK_EXACT_NUMERIC_LITERAL

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

mCharLiteral

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

mStringLiteral

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

mWhiteSpace

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

mCommentLine

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

mMultiLineComment

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


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30