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, walkStringLiteral
public MapExpressionEvaluator()
public boolean matchesEntry(Expression expression, Map<String,Object> map)
protected QueryParseException unknownProperty(String name)
public Boolean walkMixinTypes(List<String> mixins, boolean include)
ExpressionEvaluator
Used for:
walkMixinTypes
in class ExpressionEvaluator
mixins
- the mixin(s) to matchinclude
- true
for = and INprotected Boolean walkEcmFulltext(String name, Operator op, Operand rvalue)
walkEcmFulltext
in class ExpressionEvaluator
protected Boolean walkEcmPath(Operator op, Operand rvalue)
walkEcmPath
in class ExpressionEvaluator
public Boolean walkStartsWith(Operand lvalue, Operand rvalue)
walkStartsWith
in class ExpressionEvaluator
protected Boolean walkAncestorId(Operator op, Operand rvalue)
walkAncestorId
in class ExpressionEvaluator
protected Boolean walkIsTrashed(Operator op, Operand rvalue)
walkIsTrashed
in class ExpressionEvaluator
public Object walkReference(Reference ref)
ExpressionEvaluator
walkReference
in class ExpressionEvaluator
ref
- the referenceCopyright © 2018 Nuxeo. All rights reserved.