org.castor.cpa.query.castorql
Class CastorQLParser

java.lang.Object
  extended by org.castor.cpa.query.castorql.CastorQLParser
All Implemented Interfaces:
CastorQLParserConstants, CastorQLParserTreeConstants

public class CastorQLParser
extends Object
implements CastorQLParserTreeConstants, CastorQLParserConstants


Field Summary
 Token jj_nt
          Next token.
protected  JJTCastorQLParserState jjtree
           
 Token token
          Current token.
 CastorQLParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.castor.cpa.query.castorql.CastorQLParserTreeConstants
JJTBETWEENEXPRESSION, JJTBOOLEANLITERAL, JJTCASTORPARAMETER, JJTCASTORQL, JJTCHARLITERAL, JJTCOMPARISONEXPRESSION, JJTCOMPARISONOPERATOR, JJTCONDITIONALEXPRESSION, JJTCONDITIONALFACTOR, JJTCONDITIONALPRIMARY, JJTCONDITIONALTERM, JJTDATELITERAL, JJTDATEPRIMARY, JJTEXPRESSION, JJTFACTOR, JJTFLOATLITERAL, JJTFROMCLAUSE, JJTFROMDECLARATION, JJTFUNCTION, JJTIDENTIFIER, JJTINEXPRESSION, JJTINITEM, JJTINTEGERLITERAL, JJTLIKEEXPRESSION, JJTLIMITCLAUSE, JJTLITERAL, JJTNAMEDPARAMETER, jjtNodeName, JJTNULLEXPRESSION, JJTORDERBYCLAUSE, JJTORDERBYITEM, JJTPARAMETER, JJTPATH, JJTPOSITIONALPARAMETER, JJTPRIMARY, JJTSELECTCLAUSE, JJTSELECTEXPRESSION, JJTSELECTSTATEMENT, JJTSTRINGLITERAL, JJTTERM, JJTTIMELITERAL, JJTTIMEPRIMARY, JJTTIMESTAMPLITERAL, JJTTIMESTAMPPRIMARY, JJTUNDEFINEDFUNCTION, JJTWHERECLAUSE
 
Fields inherited from interface org.castor.cpa.query.castorql.CastorQLParserConstants
ABS, AND, AS, ASC, BETWEEN, BOOLEAN_LITERAL, BY, CHAR_LITERAL, CONCATE, DATE, DATE_LITERAL, DEFAULT, DESC, DIGIT, DISTINCT, DIVIDE, EOF, EQUAL, ESCAPE, FALSE, FLOAT_LITERAL, FROM, GREATEREQUAL, GREATERTHAN, IDENTIFIER, IN, INTEGER_LITERAL, IS, IS_DEFINED, IS_UNDEFINED, LESSEQUAL, LESSTHAN, LETTER, LIKE, LIMIT, MINUS, MOD, MULTIPLY, NIL, NOT, NOTEQUAL1, NOTEQUAL2, NULL, OFFSET, OR, ORDER, PLUS, REMAINDER, SELECT, STRING_LITERAL, TIME, TIME_LITERAL, TIMESTAMP, TIMESTAMP_LITERAL, tokenImage, TRUE, UNDEFINED, WHERE
 
Constructor Summary
CastorQLParser(CastorQLParserTokenManager tm)
          Constructor with generated Token Manager.
CastorQLParser(InputStream stream)
          Constructor with InputStream.
CastorQLParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
CastorQLParser(Reader stream)
          Constructor.
 
Method Summary
 void BetweenExpression()
           
 void BooleanLiteral()
           
 void CastorParameter()
           
 SimpleNode castorQL()
           
 void CharLiteral()
           
 void ComparisonExpression()
           
 void ComparisonOperator()
           
 void ConditionalExpression()
           
 void ConditionalFactor()
           
 void ConditionalPrimary()
           
 void ConditionalTerm()
           
 void DateLiteral()
           
 void DatePrimary()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 void Expression()
           
 void Factor()
           
 void FloatLiteral()
           
 void FromClause()
           
 void FromDeclaration()
           
 void Function()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void Identifier()
           
 void InExpression()
           
 void InItem()
           
 void IntegerLiteral()
           
 void LikeExpression()
           
 void LimitClause()
           
 void Literal()
           
 void NamedParameter()
           
 void NullExpression()
           
 void OrderbyClause()
           
 void OrderbyItem()
           
 void Parameter()
           
 void Path()
           
 void PositionalParameter()
           
 void Primary()
           
 void ReInit(CastorQLParserTokenManager tm)
          Reinitialise.
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void SelectClause()
           
 void SelectExpression()
           
 void SelectStatement()
           
 void StringLiteral()
           
 void Term()
           
 void TimeLiteral()
           
 void TimePrimary()
           
 void TimestampLiteral()
           
 void TimestampPrimary()
           
 void UndefinedFunction()
           
 void WhereClause()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTCastorQLParserState jjtree

token_source

public CastorQLParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

CastorQLParser

public CastorQLParser(InputStream stream)
Constructor with InputStream.


CastorQLParser

public CastorQLParser(InputStream stream,
                      String encoding)
Constructor with InputStream and supplied encoding


CastorQLParser

public CastorQLParser(Reader stream)
Constructor.


CastorQLParser

public CastorQLParser(CastorQLParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

castorQL

public final SimpleNode castorQL()
                          throws ParseException
Throws:
ParseException

SelectStatement

public final void SelectStatement()
                           throws ParseException
Throws:
ParseException

SelectClause

public final void SelectClause()
                        throws ParseException
Throws:
ParseException

SelectExpression

public final void SelectExpression()
                            throws ParseException
Throws:
ParseException

FromClause

public final void FromClause()
                      throws ParseException
Throws:
ParseException

FromDeclaration

public final void FromDeclaration()
                           throws ParseException
Throws:
ParseException

WhereClause

public final void WhereClause()
                       throws ParseException
Throws:
ParseException

OrderbyClause

public final void OrderbyClause()
                         throws ParseException
Throws:
ParseException

OrderbyItem

public final void OrderbyItem()
                       throws ParseException
Throws:
ParseException

LimitClause

public final void LimitClause()
                       throws ParseException
Throws:
ParseException

ConditionalExpression

public final void ConditionalExpression()
                                 throws ParseException
Throws:
ParseException

ConditionalTerm

public final void ConditionalTerm()
                           throws ParseException
Throws:
ParseException

ConditionalFactor

public final void ConditionalFactor()
                             throws ParseException
Throws:
ParseException

ConditionalPrimary

public final void ConditionalPrimary()
                              throws ParseException
Throws:
ParseException

ComparisonExpression

public final void ComparisonExpression()
                                throws ParseException
Throws:
ParseException

ComparisonOperator

public final void ComparisonOperator()
                              throws ParseException
Throws:
ParseException

BetweenExpression

public final void BetweenExpression()
                             throws ParseException
Throws:
ParseException

LikeExpression

public final void LikeExpression()
                          throws ParseException
Throws:
ParseException

InExpression

public final void InExpression()
                        throws ParseException
Throws:
ParseException

InItem

public final void InItem()
                  throws ParseException
Throws:
ParseException

NullExpression

public final void NullExpression()
                          throws ParseException
Throws:
ParseException

UndefinedFunction

public final void UndefinedFunction()
                             throws ParseException
Throws:
ParseException

Expression

public final void Expression()
                      throws ParseException
Throws:
ParseException

Term

public final void Term()
                throws ParseException
Throws:
ParseException

Factor

public final void Factor()
                  throws ParseException
Throws:
ParseException

Primary

public final void Primary()
                   throws ParseException
Throws:
ParseException

Function

public final void Function()
                    throws ParseException
Throws:
ParseException

DatePrimary

public final void DatePrimary()
                       throws ParseException
Throws:
ParseException

TimePrimary

public final void TimePrimary()
                       throws ParseException
Throws:
ParseException

TimestampPrimary

public final void TimestampPrimary()
                            throws ParseException
Throws:
ParseException

Literal

public final void Literal()
                   throws ParseException
Throws:
ParseException

Parameter

public final void Parameter()
                     throws ParseException
Throws:
ParseException

PositionalParameter

public final void PositionalParameter()
                               throws ParseException
Throws:
ParseException

NamedParameter

public final void NamedParameter()
                          throws ParseException
Throws:
ParseException

CastorParameter

public final void CastorParameter()
                           throws ParseException
Throws:
ParseException

Path

public final void Path()
                throws ParseException
Throws:
ParseException

Identifier

public final void Identifier()
                      throws ParseException
Throws:
ParseException

BooleanLiteral

public final void BooleanLiteral()
                          throws ParseException
Throws:
ParseException

IntegerLiteral

public final void IntegerLiteral()
                          throws ParseException
Throws:
ParseException

FloatLiteral

public final void FloatLiteral()
                        throws ParseException
Throws:
ParseException

CharLiteral

public final void CharLiteral()
                       throws ParseException
Throws:
ParseException

StringLiteral

public final void StringLiteral()
                         throws ParseException
Throws:
ParseException

TimestampLiteral

public final void TimestampLiteral()
                            throws ParseException
Throws:
ParseException

DateLiteral

public final void DateLiteral()
                       throws ParseException
Throws:
ParseException

TimeLiteral

public final void TimeLiteral()
                       throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(CastorQLParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2012. All Rights Reserved.