org.castor.cpa.query.ejbql
Class EjbQLParser

java.lang.Object
  extended by org.castor.cpa.query.ejbql.EjbQLParser
All Implemented Interfaces:
EjbQLParserConstants, EjbQLParserTreeConstants

public class EjbQLParser
extends Object
implements EjbQLParserTreeConstants, EjbQLParserConstants


Field Summary
 Token jj_nt
          Next token.
protected  JJTEjbQLParserState jjtree
           
 Token token
          Current token.
 EjbQLParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.castor.cpa.query.ejbql.EjbQLParserTreeConstants
JJTBETWEENEXPRESSION, JJTBOOLEANLITERAL, JJTCHARLITERAL, JJTCOMPARISONEXPRESSION, JJTCOMPARISONOPERATOR, JJTCONDITIONALEXPRESSION, JJTCONDITIONALFACTOR, JJTCONDITIONALPRIMARY, JJTCONDITIONALTERM, JJTDATELITERAL, JJTEJBQL, 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, JJTTERM, JJTTIMELITERAL, JJTTIMESTAMPLITERAL, JJTTRIMSPECIFICATION, JJTWHERECLAUSE
 
Fields inherited from interface org.castor.cpa.query.ejbql.EjbQLParserConstants
ABS, AND, AS, ASC, BETWEEN, BOOLEAN_LITERAL, BOTH, BY, CHAR_LITERAL, CONCAT, CONCATE, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, 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, LEADING, LENGTH, LESSEQUAL, LESSTHAN, LETTER, LIKE, LIMIT, LOCATE, LOWER, MINUS, MOD, MULTIPLY, NIL, NOT, NOTEQUAL, NULL, OBJECT, OFFSET, OR, ORDER, PLUS, REMAINDER, SELECT, SQRT, SUBSTRING, TIME, TIME_LITERAL, TIMESTAMP, TIMESTAMP_LITERAL, tokenImage, TRAILING, TRIM, TRUE, UNDEFINED, UPPER, WHERE
 
Constructor Summary
EjbQLParser(EjbQLParserTokenManager tm)
          Constructor with generated Token Manager.
EjbQLParser(InputStream stream)
          Constructor with InputStream.
EjbQLParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
EjbQLParser(Reader stream)
          Constructor.
 
Method Summary
 void BetweenExpression()
           
 void BooleanLiteral()
           
 void CharLiteral()
           
 void ComparisonExpression()
           
 void ComparisonOperator()
           
 void ConditionalExpression()
           
 void ConditionalFactor()
           
 void ConditionalPrimary()
           
 void ConditionalTerm()
           
 void DateLiteral()
           
 void disable_tracing()
          Disable tracing.
 SimpleNode ejbQL()
           
 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(EjbQLParserTokenManager 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 Term()
           
 void TimeLiteral()
           
 void TimestampLiteral()
           
 void TrimSpecification()
           
 void WhereClause()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTEjbQLParserState jjtree

token_source

public EjbQLParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

EjbQLParser

public EjbQLParser(InputStream stream)
Constructor with InputStream.


EjbQLParser

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


EjbQLParser

public EjbQLParser(Reader stream)
Constructor.


EjbQLParser

public EjbQLParser(EjbQLParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

ejbQL

public final SimpleNode ejbQL()
                       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

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

Literal

public final void Literal()
                   throws ParseException
Throws:
ParseException

Function

public final void Function()
                    throws ParseException
Throws:
ParseException

TrimSpecification

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

Path

public final void Path()
                throws ParseException
Throws:
ParseException

Identifier

public final void Identifier()
                      throws ParseException
Throws:
ParseException

FloatLiteral

public final void FloatLiteral()
                        throws ParseException
Throws:
ParseException

IntegerLiteral

public final void IntegerLiteral()
                          throws ParseException
Throws:
ParseException

CharLiteral

public final void CharLiteral()
                       throws ParseException
Throws:
ParseException

BooleanLiteral

public final void BooleanLiteral()
                          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(EjbQLParserTokenManager 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 © 2011. All Rights Reserved.