public class MapExpressionEvaluator extends ExpressionEvaluator
ExpressionEvaluator.PathResolver| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
map |
protected static Long |
ONE |
protected static Long |
ZERO |
DATE_CAST, fulltextSearchDisabled, hasFulltext, NEG_PHRASE_QUOTE, NXQL_ECM_ANCESTOR_IDS, NXQL_ECM_FULLTEXT_BINARY, NXQL_ECM_FULLTEXT_SIMPLE, NXQL_ECM_PATH, NXQL_ECM_READ_ACL, OR, pathResolver, PHRASE_QUOTE, principals| Constructor and Description |
|---|
MapExpressionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matchesEntry(Expression expression,
Map<String,Object> map) |
protected QueryParseException |
unknownProperty(String name) |
protected Boolean |
walkAncestorId(Operator op,
Operand rvalue) |
protected Boolean |
walkEcmFulltext(String name,
Operator op,
Operand rvalue) |
protected Boolean |
walkEcmPath(Operator op,
Operand rvalue) |
protected Boolean |
walkIsTrashed(Operator op,
Operand rvalue) |
Boolean |
walkMixinTypes(List<String> mixins,
boolean include)
Matches the mixin types against a list of values.
|
Object |
walkReference(Reference ref)
Evaluates a reference over the context state.
|
Boolean |
walkStartsWith(Operand lvalue,
Operand rvalue) |
and, bool, checkDateLiteralForCast, cmp, cmp, eq, eqMaybeList, fulltext, fulltext, fulltext1, in, inMaybeList, isMixinTypes, like, likeMaybeList, likeToRegex, not, or, walkAnd, walkBetween, walkBooleanLiteral, walkDateLiteral, walkDoubleLiteral, walkEq, walkExpression, walkFunction, walkGt, walkGtEq, walkIn, walkIntegerLiteral, walkIsNotNull, walkIsNull, walkIsTrashed, walkLike, walkLiteral, walkLiteralList, walkLt, walkLtEq, walkMultiExpression, walkNot, walkNotEq, walkOperand, walkOr, walkStartsWithNonPath, walkStartsWithPath, walkStringLiteralpublic MapExpressionEvaluator()
public boolean matchesEntry(Expression expression, Map<String,Object> map)
protected QueryParseException unknownProperty(String name)
public Boolean walkMixinTypes(List<String> mixins, boolean include)
ExpressionEvaluatorUsed for:
walkMixinTypes in class ExpressionEvaluatormixins - the mixin(s) to matchinclude - true for = and INprotected Boolean walkEcmFulltext(String name, Operator op, Operand rvalue)
walkEcmFulltext in class ExpressionEvaluatorprotected Boolean walkEcmPath(Operator op, Operand rvalue)
walkEcmPath in class ExpressionEvaluatorpublic Boolean walkStartsWith(Operand lvalue, Operand rvalue)
walkStartsWith in class ExpressionEvaluatorprotected Boolean walkAncestorId(Operator op, Operand rvalue)
walkAncestorId in class ExpressionEvaluatorprotected Boolean walkIsTrashed(Operator op, Operand rvalue)
walkIsTrashed in class ExpressionEvaluatorpublic Object walkReference(Reference ref)
ExpressionEvaluatorwalkReference in class ExpressionEvaluatorref - the referenceCopyright © 2018 Nuxeo. All rights reserved.