org.apache.ojb.odmg.oql
Class OQLParser

java.lang.Object
  extended by antlr.Parser
      extended by antlr.LLkParser
          extended by org.apache.ojb.odmg.oql.OQLParser
All Implemented Interfaces:
OQLLexerTokenTypes

public class OQLParser
extends antlr.LLkParser
implements OQLLexerTokenTypes


Field Summary
static java.lang.String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
static antlr.collections.impl.BitSet _tokenSet_1
           
static antlr.collections.impl.BitSet _tokenSet_10
           
static antlr.collections.impl.BitSet _tokenSet_11
           
static antlr.collections.impl.BitSet _tokenSet_12
           
static antlr.collections.impl.BitSet _tokenSet_13
           
static antlr.collections.impl.BitSet _tokenSet_14
           
static antlr.collections.impl.BitSet _tokenSet_15
           
static antlr.collections.impl.BitSet _tokenSet_16
           
static antlr.collections.impl.BitSet _tokenSet_17
           
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
           
static antlr.collections.impl.BitSet _tokenSet_7
           
static antlr.collections.impl.BitSet _tokenSet_8
           
static antlr.collections.impl.BitSet _tokenSet_9
           
 
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
OQLParser(antlr.ParserSharedInputState state)
           
OQLParser(antlr.TokenBuffer tokenBuf)
           
OQLParser(antlr.TokenStream lexer)
           
 
Method Summary
 void andExpr(Criteria criteria)
           
 java.util.Collection argList()
           
 void betweenExpr(Criteria criteria)
           
 Query buildQuery()
           
 void equalityExpr(Criteria criteria)
           
 void existsExpr(Criteria criteria)
           
 Query existsQuery()
           
 java.lang.Class fromClause()
           
 void groupClause(QueryByCriteria query)
           
 void groupCriterion(QueryByCriteria query)
           
 void inExpr(Criteria criteria)
           
 void likeExpr(Criteria criteria)
           
 java.lang.Object literal()
           
 void orderClause(QueryByCriteria query)
           
 void orExpr(Criteria criteria)
           
 void prefetchClause(QueryByCriteria query)
           
 void prefetchCriterion(QueryByCriteria query)
           
 java.lang.String[] projectionAttributes()
           
 void quantifierExpr(Criteria criteria)
           
 QueryByCriteria selectQuery()
           
 void sortCriterion(QueryByCriteria query)
           
 void undefinedExpr(Criteria criteria)
           
 void whereClause(Criteria criteria)
           
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final java.lang.String[] _tokenNames

_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

_tokenSet_7

public static final antlr.collections.impl.BitSet _tokenSet_7

_tokenSet_8

public static final antlr.collections.impl.BitSet _tokenSet_8

_tokenSet_9

public static final antlr.collections.impl.BitSet _tokenSet_9

_tokenSet_10

public static final antlr.collections.impl.BitSet _tokenSet_10

_tokenSet_11

public static final antlr.collections.impl.BitSet _tokenSet_11

_tokenSet_12

public static final antlr.collections.impl.BitSet _tokenSet_12

_tokenSet_13

public static final antlr.collections.impl.BitSet _tokenSet_13

_tokenSet_14

public static final antlr.collections.impl.BitSet _tokenSet_14

_tokenSet_15

public static final antlr.collections.impl.BitSet _tokenSet_15

_tokenSet_16

public static final antlr.collections.impl.BitSet _tokenSet_16

_tokenSet_17

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

OQLParser

public OQLParser(antlr.TokenBuffer tokenBuf)

OQLParser

public OQLParser(antlr.TokenStream lexer)

OQLParser

public OQLParser(antlr.ParserSharedInputState state)
Method Detail

buildQuery

public final Query buildQuery()
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

selectQuery

public final QueryByCriteria selectQuery()
                                  throws antlr.RecognitionException,
                                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

projectionAttributes

public final java.lang.String[] projectionAttributes()
                                              throws antlr.RecognitionException,
                                                     antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

fromClause

public final java.lang.Class fromClause()
                                 throws antlr.RecognitionException,
                                        antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

whereClause

public final void whereClause(Criteria criteria)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

orderClause

public final void orderClause(QueryByCriteria query)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

groupClause

public final void groupClause(QueryByCriteria query)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

prefetchClause

public final void prefetchClause(QueryByCriteria query)
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

existsQuery

public final Query existsQuery()
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

orExpr

public final void orExpr(Criteria criteria)
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

sortCriterion

public final void sortCriterion(QueryByCriteria query)
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

groupCriterion

public final void groupCriterion(QueryByCriteria query)
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

prefetchCriterion

public final void prefetchCriterion(QueryByCriteria query)
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

andExpr

public final void andExpr(Criteria criteria)
                   throws antlr.RecognitionException,
                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

quantifierExpr

public final void quantifierExpr(Criteria criteria)
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

equalityExpr

public final void equalityExpr(Criteria criteria)
                        throws antlr.RecognitionException,
                               antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

likeExpr

public final void likeExpr(Criteria criteria)
                    throws antlr.RecognitionException,
                           antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

undefinedExpr

public final void undefinedExpr(Criteria criteria)
                         throws antlr.RecognitionException,
                                antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

betweenExpr

public final void betweenExpr(Criteria criteria)
                       throws antlr.RecognitionException,
                              antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

inExpr

public final void inExpr(Criteria criteria)
                  throws antlr.RecognitionException,
                         antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

existsExpr

public final void existsExpr(Criteria criteria)
                      throws antlr.RecognitionException,
                             antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

literal

public final java.lang.Object literal()
                               throws antlr.RecognitionException,
                                      antlr.TokenStreamException
Throws:
antlr.RecognitionException
antlr.TokenStreamException

argList

public final java.util.Collection argList()
                                   throws antlr.RecognitionException,
                                          antlr.TokenStreamException
Throws:
antlr.RecognitionException
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