Package org.rumbledb.expressions
Enum Class ExpressionClassification
- All Implemented Interfaces:
Serializable
,Comparable<ExpressionClassification>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionboolean
isSimple()
boolean
isUnset()
boolean
boolean
toString()
static ExpressionClassification
Returns the enum constant of this class with the specified name.static ExpressionClassification[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSET
-
BASIC_UPDATING
-
UPDATING
-
SIMPLE
-
VACUOUS
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isUnset
public boolean isUnset() -
isUpdating
public boolean isUpdating() -
isSimple
public boolean isSimple() -
isVacuous
public boolean isVacuous() -
toString
- Overrides:
toString
in classEnum<ExpressionClassification>
-