Enum Class ExpressionClassification

java.lang.Object
java.lang.Enum<ExpressionClassification>
org.rumbledb.expressions.ExpressionClassification
All Implemented Interfaces:
Serializable, Comparable<ExpressionClassification>, Constable

public enum ExpressionClassification extends Enum<ExpressionClassification>
An ExpressionClassification classifies an expression under 4 possible classifications. A BASIC_UPDATING expression is classified as 1 of 5 expressions in the update package, that can alter the state of an existing node. An UPDATING expression is classified as a BASIC_UPDATING expression or any expression (excluding a TransformExpression) that directly contains an UPDATING expression and that can alter the state of an existing node. A SIMPLE expression is classified as an expression that is not an updating expression. A VACUOUS expression follows the definition of the XQuery Update Facility 1.0, but is largely classified as an expression that can be determined statically to return an empty sequence or raise an error.
  • Enum Constant Details

  • Method Details

    • values

      public static ExpressionClassification[] 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 ExpressionClassification 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
    • isUnset

      public boolean isUnset()
    • isUpdating

      public boolean isUpdating()
    • isSimple

      public boolean isSimple()
    • isVacuous

      public boolean isVacuous()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ExpressionClassification>