public static enum CmpV.OpV extends Enum<CmpV.OpV>
Enum Constant and Description |
---|
EQ
Item comparison: equal.
|
GE
Item comparison: greater of equal.
|
GT
Item comparison: greater.
|
LE
Item comparison: less or equal.
|
LT
Item comparison: less.
|
NE
Item comparison: not equal.
|
Modifier and Type | Field and Description |
---|---|
String |
name
String representation.
|
static CmpV.OpV[] |
VALUES
Cached enums (faster).
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
eval(Item it1,
Item it2,
Collation coll,
StaticContext sc,
InputInfo ii)
Evaluates the expression.
|
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.
|
public static final CmpV.OpV LE
public static final CmpV.OpV LT
public static final CmpV.OpV GE
public static final CmpV.OpV GT
public static final CmpV.OpV EQ
public static final CmpV.OpV NE
public static final CmpV.OpV[] VALUES
public final String name
public static CmpV.OpV[] values()
for (CmpV.OpV c : CmpV.OpV.values()) System.out.println(c);
public static CmpV.OpV valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract boolean eval(Item it1, Item it2, Collation coll, StaticContext sc, InputInfo ii) throws QueryException
it1
- first itemit2
- second itemcoll
- query contextsc
- static contextii
- input infoQueryException
- query exceptionpublic abstract CmpV.OpV swap()
public abstract CmpV.OpV invert()
Copyright © 2005–2015 BaseX Team. All rights reserved.