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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Expr
invert()
If possible, returns an expression with inverted operands.Expr
invert(CompileContext cc)
If possible, returns an optimized expression with inverted operands.abstract CmpG.OpG
opG()
Returns the general comparator of the expression.abstract CmpV.OpV
opV()
Returns the value comparator of the expression.-
Methods inherited from class org.basex.query.expr.Arr
accept, allAreValues, args, checkUp, compile, copyAll, count, equals, exprSize, flatten, has, inline, inlineable, mayBePositional, removeEmpty, simplifyAll, toXml
-
Methods inherited from class org.basex.query.expr.ParseExpr
adoptType, atomValue, checkAllUp, checkNoEmpty, checkNoEmpty, checkNoneUp, checkNoUp, checkType, checkType, checkUp, copyType, ctxValue, data, ebv, info, item, iter, refineType, seqType, size, test, toArray, toArray, toAtomItem, toB64, toB64, toBin, toBin, toBoolean, toBoolean, toBytes, toBytes, toDouble, toDouble, toElem, toFloat, toFunction, toItem, toItem, toLong, toLong, toMap, toMap, toNode, toNode, toNodeOrNull, toNumber, toNumberOrNull, toQNm, toQNm, toString, toString, toStringOrNull, toToken, toToken, toTokenOrNull, toZeroToken, value
-
Methods inherited from class org.basex.query.expr.Expr
arg, atomItem, atomIter, copy, ddo, funcType, hasFreeVars, indexAccessible, isSimple, markTailCalls, mergeEbv, optimize, optimizePos, simplify, simplifyFor, typeCheck, uses, vacuous, visitAll
-
Methods inherited from class org.basex.query.expr.ExprInfo
description, toErrorString, toString, toString
-
-
-
-
Method Detail
-
invert
public final Expr invert(CompileContext cc) throws QueryException
If possible, returns an optimized expression with inverted operands.- Parameters:
cc
- compilation context- Returns:
- original or modified expression
- Throws:
QueryException
- query exception
-
invert
public abstract Expr invert()
If possible, returns an expression with inverted operands.- Returns:
- original or
null
-
opV
public abstract CmpV.OpV opV()
Returns the value comparator of the expression.- Returns:
- operator, or
null
for node comparisons
-
opG
public abstract CmpG.OpG opG()
Returns the general comparator of the expression.- Returns:
- operator, or
null
for node comparisons
-
-