Package org.apache.cayenne.exp.parser
Class ExpressionParser
java.lang.Object
org.apache.cayenne.exp.parser.ExpressionParser
- All Implemented Interfaces:
- ExpressionParserConstants,- ExpressionParserTreeConstants
public class ExpressionParser extends Object implements ExpressionParserTreeConstants, ExpressionParserConstants
Parser of Cayenne Expressions.
- Since:
- 1.1
- 
Field SummaryFields Modifier and Type Field Description Tokenjj_ntNext token.protected JJTExpressionParserStatejjtreeTokentokenCurrent token.ExpressionParserTokenManagertoken_sourceGenerated Token Manager.Fields inherited from interface org.apache.cayenne.exp.parser.ExpressionParserConstantsABS, ASTERISK, AVG, CONCAT, COUNT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DAY, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_YEAR, DEC_DIGITS, DEC_FLT, DEFAULT, DIGIT, DISTINCT, DOUBLE_QUOTED_STRING, EOF, ESC, EXPONENT, FALSE, FLOAT_LITERAL, FLT_SUFF, HOUR, IDENTIFIER, INT_LITERAL, LENGTH, LETTER, LOCATE, LOWER, MAX, MIN, MINUTE, MOD, MONTH, NULL, PROPERTY_PATH, SECOND, SINGLE_QUOTED_STRING, SQRT, STRING_ESC, SUBSTRING, SUM, tokenImage, TRIM, TRUE, UPPER, WEEK, WithinDoubleQuoteLiteral, WithinSingleQuoteLiteral, YEARFields inherited from interface org.apache.cayenne.exp.parser.ExpressionParserTreeConstantsJJTABS, JJTADD, JJTAND, JJTASTERISK, JJTAVG, JJTBETWEEN, JJTBITWISEAND, JJTBITWISELEFTSHIFT, JJTBITWISENOT, JJTBITWISEOR, JJTBITWISERIGHTSHIFT, JJTBITWISEXOR, JJTCONCAT, JJTCOUNT, JJTCURRENTDATE, JJTCURRENTTIME, JJTCURRENTTIMESTAMP, JJTDBPATH, JJTDISTINCT, JJTDIVIDE, JJTENUM, JJTEQUAL, JJTEXTRACT, JJTFALSE, JJTGREATER, JJTGREATEROREQUAL, JJTIN, JJTLENGTH, JJTLESS, JJTLESSOREQUAL, JJTLIKE, JJTLIKEIGNORECASE, JJTLIST, JJTLOCATE, JJTLOWER, JJTMAX, JJTMIN, JJTMOD, JJTMULTIPLY, JJTNAMEDPARAMETER, JJTNEGATE, jjtNodeName, JJTNOT, JJTNOTBETWEEN, JJTNOTEQUAL, JJTNOTIN, JJTNOTLIKE, JJTNOTLIKEIGNORECASE, JJTOBJPATH, JJTOR, JJTSCALAR, JJTSQRT, JJTSUBSTRING, JJTSUBTRACT, JJTSUM, JJTTRIM, JJTTRUE, JJTUPPER, JJTVOID
- 
Constructor SummaryConstructors Constructor Description ExpressionParser(InputStream stream)Constructor with InputStream.ExpressionParser(InputStream stream, String encoding)Constructor with InputStream and supplied encodingExpressionParser(Reader stream)Constructor.ExpressionParser(ExpressionParserTokenManager tm)Constructor with generated Token Manager.
- 
Method Summary
- 
Field Details- 
jjtree
- 
token_sourceGenerated Token Manager.
- 
tokenCurrent token.
- 
jj_ntNext token.
 
- 
- 
Constructor Details- 
ExpressionParserConstructor with InputStream.
- 
ExpressionParserConstructor with InputStream and supplied encoding
- 
ExpressionParserConstructor.
- 
ExpressionParserConstructor with generated Token Manager.
 
- 
- 
Method Details- 
expression- Throws:
- ParseException
 
- 
orCondition- Throws:
- ParseException
 
- 
andCondition- Throws:
- ParseException
 
- 
notCondition- Throws:
- ParseException
 
- 
simpleCondition- Throws:
- ParseException
 
- 
simpleNotCondition- Throws:
- ParseException
 
- 
scalarCommaList- Throws:
- ParseException
 
- 
conditionExpression- Throws:
- ParseException
 
- 
stringParameter- Throws:
- ParseException
 
- 
stringExpression- Throws:
- ParseException
 
- 
scalarExpression- Throws:
- ParseException
 
- 
scalarConstExpression- Throws:
- ParseException
 
- 
numericExpression- Throws:
- ParseException
 
- 
bitwiseOr- Throws:
- ParseException
 
- 
bitwiseXor- Throws:
- ParseException
 
- 
bitwiseAnd- Throws:
- ParseException
 
- 
bitwiseShift- Throws:
- ParseException
 
- 
arithmeticExp- Throws:
- ParseException
 
- 
multiplySubtractExp- Throws:
- ParseException
 
- 
numericTermExt- Throws:
- ParseException
 
- 
numericTerm- Throws:
- ParseException
 
- 
numericPrimary- Throws:
- ParseException
 
- 
functionsReturningStrings- Throws:
- ParseException
 
- 
concat- Throws:
- ParseException
 
- 
substring- Throws:
- ParseException
 
- 
trim- Throws:
- ParseException
 
- 
lower- Throws:
- ParseException
 
- 
upper- Throws:
- ParseException
 
- 
functionsReturningNumerics- Throws:
- ParseException
 
- 
length- Throws:
- ParseException
 
- 
locate- Throws:
- ParseException
 
- 
abs- Throws:
- ParseException
 
- 
sqrt- Throws:
- ParseException
 
- 
mod- Throws:
- ParseException
 
- 
aggregateExpression- Throws:
- ParseException
 
- 
asterisk- Throws:
- ParseException
 
- 
count- Throws:
- ParseException
 
- 
avg- Throws:
- ParseException
 
- 
max- Throws:
- ParseException
 
- 
min- Throws:
- ParseException
 
- 
sum- Throws:
- ParseException
 
- 
dateTimeFunction- Throws:
- ParseException
 
- 
currentDate- Throws:
- ParseException
 
- 
currentTime- Throws:
- ParseException
 
- 
currentTimestamp- Throws:
- ParseException
 
- 
dateTimeExtractingFunction- Throws:
- ParseException
 
- 
distinct- Throws:
- ParseException
 
- 
namedParameter- Throws:
- ParseException
 
- 
pathExpression- Throws:
- ParseException
 
- 
ReInitReinitialise.
- 
ReInitReinitialise.
- 
ReInitReinitialise.
- 
ReInitReinitialise.
- 
getNextTokenGet the next Token.
- 
getTokenGet the specific Token.
- 
generateParseExceptionGenerate ParseException.
- 
enable_tracingpublic final void enable_tracing()Enable tracing.
- 
disable_tracingpublic final void disable_tracing()Disable tracing.
 
-