Package org.basex.query.expr
Enum Class CmpV.OpV
- All Implemented Interfaces:
Serializable,Comparable<CmpV.OpV>,java.lang.constant.Constable
- Enclosing class:
- CmpV
Comparators.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanEvaluates the expression.abstract CmpV.OpVinvert()Inverts the comparator.abstract CmpV.OpVswap()Swaps the comparator.toString()static CmpV.OpVReturns the enum constant of this class with the specified name.static CmpV.OpV[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LE
Item comparison: less or equal. -
LT
Item comparison: less. -
GE
Item comparison: greater of equal. -
GT
Item comparison: greater. -
EQ
Item comparison: equal. -
NE
Item comparison: not equal.
-
-
Field Details
-
VALUES
Cached enums (faster). -
name
String representation.
-
-
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
-
eval
public abstract boolean eval(Item item1, Item item2, Collation coll, StaticContext sc, InputInfo ii) throws QueryException Evaluates the expression.- Parameters:
item1- first itemitem2- second itemcoll- collation (can benull)sc- static contextii- input info- Returns:
- result
- Throws:
QueryException- query exception
-
swap
Swaps the comparator.- Returns:
- swapped comparator
-
invert
Inverts the comparator.- Returns:
- inverted comparator
-
toString
-