|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.exp.parser.ExpressionParser
public class ExpressionParser
Parser of Cayenne Expressions.
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
protected org.apache.cayenne.exp.parser.JJTExpressionParserState |
jjtree
|
Token |
token
Current token. |
ExpressionParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.apache.cayenne.exp.parser.ExpressionParserTreeConstants |
---|
JJTADD, JJTAND, JJTBETWEEN, JJTDBPATH, JJTDIVIDE, JJTEQUAL, JJTFALSE, JJTGREATER, JJTGREATEROREQUAL, JJTIN, JJTLESS, JJTLESSOREQUAL, JJTLIKE, JJTLIKEIGNORECASE, JJTLIST, JJTMULTIPLY, JJTNAMEDPARAMETER, JJTNEGATE, jjtNodeName, JJTNOT, JJTNOTBETWEEN, JJTNOTEQUAL, JJTNOTIN, JJTNOTLIKE, JJTNOTLIKEIGNORECASE, JJTOBJPATH, JJTOR, JJTSCALAR, JJTSUBTRACT, JJTTRUE, JJTVOID |
Fields inherited from interface org.apache.cayenne.exp.parser.ExpressionParserConstants |
---|
DEC_DIGITS, DEC_FLT, DEFAULT, DIGIT, DOUBLE_QUOTED_STRING, EOF, ESC, EXPONENT, FALSE, FLOAT_LITERAL, FLT_SUFF, IDENTIFIER, INT_LITERAL, LETTER, NULL, PROPERTY_PATH, SINGLE_QUOTED_STRING, STRING_ESC, tokenImage, TRUE, WithinDoubleQuoteLiteral, WithinSingleQuoteLiteral |
Constructor Summary | |
---|---|
ExpressionParser(ExpressionParserTokenManager tm)
Constructor with generated Token Manager. |
|
ExpressionParser(InputStream stream)
Constructor with InputStream. |
|
ExpressionParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
ExpressionParser(Reader stream)
Constructor. |
Method Summary | |
---|---|
void |
andCondition()
|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
Expression |
expression()
|
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
static void |
main(String[] arg)
|
void |
multiplySubtractExp()
|
void |
namedParameter()
|
void |
notCondition()
|
void |
numericPrimary()
|
void |
numericTerm()
|
void |
orCondition()
|
void |
pathExpression()
|
void |
ReInit(ExpressionParserTokenManager tm)
Reinitialise. |
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
void |
scalarCommaList()
|
void |
scalarConditionExpression()
|
void |
scalarConstExpression()
|
void |
scalarExpression()
|
void |
scalarNumericExpression()
|
void |
simpleCondition()
|
void |
simpleNotCondition()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.cayenne.exp.parser.JJTExpressionParserState jjtree
public ExpressionParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public ExpressionParser(InputStream stream)
public ExpressionParser(InputStream stream, String encoding)
public ExpressionParser(Reader stream)
public ExpressionParser(ExpressionParserTokenManager tm)
Method Detail |
---|
public static void main(String[] arg)
public final Expression expression() throws ParseException
ParseException
public final void orCondition() throws ParseException
ParseException
public final void andCondition() throws ParseException
ParseException
public final void notCondition() throws ParseException
ParseException
public final void simpleCondition() throws ParseException
ParseException
public final void simpleNotCondition() throws ParseException
ParseException
public final void scalarCommaList() throws ParseException
ParseException
public final void scalarConditionExpression() throws ParseException
ParseException
public final void scalarExpression() throws ParseException
ParseException
public final void scalarConstExpression() throws ParseException
ParseException
public final void scalarNumericExpression() throws ParseException
ParseException
public final void multiplySubtractExp() throws ParseException
ParseException
public final void numericTerm() throws ParseException
ParseException
public final void numericPrimary() throws ParseException
ParseException
public final void namedParameter() throws ParseException
ParseException
public final void pathExpression() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ExpressionParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |