Enum Class CmpV.OpV

java.lang.Object
java.lang.Enum<CmpV.OpV>
org.basex.query.expr.CmpV.OpV
All Implemented Interfaces:
Serializable, Comparable<CmpV.OpV>, java.lang.constant.Constable
Enclosing class:
CmpV

public static enum CmpV.OpV extends Enum<CmpV.OpV>
Comparators.
  • Enum Constant Details

    • LE

      public static final CmpV.OpV LE
      Item comparison: less or equal.
    • LT

      public static final CmpV.OpV LT
      Item comparison: less.
    • GE

      public static final CmpV.OpV GE
      Item comparison: greater of equal.
    • GT

      public static final CmpV.OpV GT
      Item comparison: greater.
    • EQ

      public static final CmpV.OpV EQ
      Item comparison: equal.
    • NE

      public static final CmpV.OpV NE
      Item comparison: not equal.
  • Field Details

    • VALUES

      public static final CmpV.OpV[] VALUES
      Cached enums (faster).
    • name

      public final String name
      String representation.
  • Method Details

    • values

      public static CmpV.OpV[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CmpV.OpV valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • eval

      public abstract boolean eval(Item item1, Item item2, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
      Evaluates the expression.
      Parameters:
      item1 - first item
      item2 - second item
      coll - collation (can be null)
      sc - static context
      ii - input info
      Returns:
      result
      Throws:
      QueryException - query exception
    • swap

      public abstract CmpV.OpV swap()
      Swaps the comparator.
      Returns:
      swapped comparator
    • invert

      public abstract CmpV.OpV invert()
      Inverts the comparator.
      Returns:
      inverted comparator
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CmpV.OpV>