Package org.basex.query.expr
Enum CmpV.OpV
- java.lang.Object
-
- java.lang.Enum<CmpV.OpV>
-
- org.basex.query.expr.CmpV.OpV
-
- All Implemented Interfaces:
Serializable
,Comparable<CmpV.OpV>
- Enclosing class:
- CmpV
public static enum CmpV.OpV extends Enum<CmpV.OpV>
Comparators.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
eval(Item item1, Item item2, Collation coll, StaticContext sc, InputInfo ii)
Evaluates the expression.abstract CmpG.OpG
general()
Returns the general comparator.abstract CmpV.OpV
invert()
Inverts the comparator.abstract CmpV.OpV
swap()
Swaps the comparator.String
toString()
static CmpV.OpV
valueOf(String name)
Returns the enum constant of this type with the specified name.static CmpV.OpV[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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.
-
-
Method Detail
-
values
public static CmpV.OpV[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CmpV.OpV c : CmpV.OpV.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CmpV.OpV valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
public abstract CmpV.OpV swap()
Swaps the comparator.- Returns:
- swapped comparator
-
invert
public abstract CmpV.OpV invert()
Inverts the comparator.- Returns:
- inverted comparator
-
general
public abstract CmpG.OpG general()
Returns the general comparator.- Returns:
- comparator
-
-