Class Cmp

  • Direct Known Subclasses:
    CmpG, CmpN, CmpV

    public abstract class Cmp
    extends Arr
    Abstract comparison.
    Author:
    BaseX Team 2005-22, BSD License, Christian Gruen
    • 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