Enum Class CmpN.OpN

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

public static enum CmpN.OpN extends Enum<CmpN.OpN>
Comparators.
  • Enum Constant Details

    • EQ

      public static final CmpN.OpN EQ
      Node comparison: same.
    • ET

      public static final CmpN.OpN ET
      Node comparison: before.
    • GT

      public static final CmpN.OpN GT
      Node comparison: after.
  • Field Details

    • VALUES

      public static final CmpN.OpN[] VALUES
      Cached enums (faster).
    • name

      public final String name
      String representation.
  • Method Details

    • values

      public static CmpN.OpN[] 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 CmpN.OpN 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(ANode node1, ANode node2)
      Evaluates the expression.
      Parameters:
      node1 - first node
      node2 - second node
      Returns:
      result
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CmpN.OpN>