|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Cmp>
org.basex.query.xquery.expr.Cmp
public enum Cmp
This enumeration assembles different item comparisons. Note that the order of the enumerations is important for a correct parsing of the XQuery input; longer tokens have to be put in front of short ones. As an example, the node comparison ">>" has to be placed in front of the general comparison ">".
| Enum Constant Summary | |
|---|---|
GEQ
General Comparison: equal. |
|
GGE
General Comparison: greater of equal. |
|
GGT
General Comparison: greater. |
|
GLE
General Comparison: less or equal. |
|
GLT
General Comparison: less. |
|
GNE
General Comparison: not equal. |
|
NEQ
Node Comparison: same. |
|
NET
Node Comparison: before. |
|
NGT
Node Comparison: after. |
|
VEQ
Item Comparison:equal. |
|
VGE
Item Comparison:greater of equal. |
|
VGT
Item Comparison:greater. |
|
VLE
Item Comparison:less or equal. |
|
VLT
Item Comparison:less. |
|
VNE
Item Comparison:not equal. |
|
| Field Summary | |
|---|---|
byte[] |
name
String representation. |
| Method Summary | |
|---|---|
abstract boolean |
e(Item a,
Item b)
Evaluates the expression. |
java.lang.String |
toString()
|
static boolean |
valCheck(Item a,
Item b)
Checks if the specified items can be compared. |
static Cmp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Cmp[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Cmp GEQ
public static final Cmp GGE
public static final Cmp GGT
public static final Cmp GLE
public static final Cmp GLT
public static final Cmp GNE
public static final Cmp NEQ
public static final Cmp NET
public static final Cmp NGT
public static final Cmp VEQ
public static final Cmp VGE
public static final Cmp VGT
public static final Cmp VLE
public static final Cmp VLT
public static final Cmp VNE
| Field Detail |
|---|
public final byte[] name
| Method Detail |
|---|
public abstract boolean e(Item a,
Item b)
throws XQException
a - first itemb - second item
XQException - evaluation exceptionpublic java.lang.String toString()
toString in class java.lang.Enum<Cmp>
public static boolean valCheck(Item a,
Item b)
a - first itemb - second item
public static Cmp valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static Cmp[] values()
for (Cmp c : Cmp.values()) System.out.println(c);
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||