Package com.sap.cds.impl.parser
Class ExprParser
java.lang.Object
com.sap.cds.impl.parser.AbstractCqnExpressionParser
com.sap.cds.impl.parser.ExprParser
GRAMMAR:
predicate = value pred_op value
pred_op = '=' | '>' | '<' | '>=' | '<=' | '<>' | 'is' |
'in' | 'between' `
value = numericExpression | val
numericExpression = numericTerm [ ( '+' | '-' ) numericTerm ]*
numericTerm = numericPrimary [ ( '*' | '/' ) numericPrimary ]*
numericPrimary = '(' numericExpression ')' | numericValue
numericValue = NUM_VAL | PLAIN_NUM | REF | PARAM | FUNC
val = STRING_VAL | PLAIN_STRING
-
Field Summary
Fields inherited from class com.sap.cds.impl.parser.AbstractCqnExpressionParser
aheadToken, pos, tokens
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseValue
(List<CqnToken> tokenList) parseValue
(Stream<CqnToken> tokens) protected CqnPredicate
Methods inherited from class com.sap.cds.impl.parser.AbstractCqnExpressionParser
expect, get, getList, getLiteral, getPlain, getPredicate, getValue, getXpr, hasNext, is, isList, isLiteral, isPlain, isPredicate, isRef, isXpr, nextToken, parsePredicate, parsePredicate, peek, unexpected
-
Constructor Details
-
ExprParser
public ExprParser()
-
-
Method Details
-
parseValue
-
parseValue
-
predicate
- Specified by:
predicate
in classAbstractCqnExpressionParser
-