Package org.basex.query.expr
Class Cmp
java.lang.Object
org.basex.query.expr.ExprInfo
org.basex.query.expr.Expr
org.basex.query.expr.ParseExpr
org.basex.query.expr.Arr
org.basex.query.expr.Cmp
Abstract comparison.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Exprinvert()If possible, returns an expression with inverted operands.final Exprinvert(CompileContext cc) If possible, returns an optimized expression with inverted operands.final ExproptPred(Expr root, CompileContext cc) Optimizes this expression as predicate.abstract CmpV.OpVopV()Returns the value operator of the expression.Methods inherited from class org.basex.query.expr.Arr
accept, allAreValues, args, checkUp, compile, copyAll, count, equals, exprSize, flatten, has, inline, inline, inlineable, mayBePositional, plan, simplifyAllMethods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, ebv, item, iter, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunc, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toToken, toToken, toTokenOrNull, toZeroToken, valueMethods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, copy, data, data, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, optimize, simplifyFor, typeCheck, uses, vacuous, visitAllMethods inherited from class org.basex.query.expr.ExprInfo
description, plan, toErrorString, toString
-
Method Details
-
invert
If possible, returns an optimized expression with inverted operands.- Parameters:
cc- compilation context- Returns:
- original or modified expression
- Throws:
QueryException- query exception
-
invert
If possible, returns an expression with inverted operands.- Returns:
- original or
null
-
opV
Returns the value operator of the expression.- Returns:
- operator, or
nullfor node comparisons
-
optPred
Optimizes this expression as predicate.- Parameters:
root- root expressioncc- compilation context- Returns:
- resulting expression
- Throws:
QueryException- query exception
-