|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Comp>
org.basex.query.xpath.item.Comp
public enum Comp
This enumeration assembles different value comparisons.
Enum Constant Summary | |
---|---|
APPR
Expression Type: approximate. |
|
APPRWORD
Expression Type: approximate. |
|
EQ
Expression Type: equal. |
|
GE
Expression Type: greater of equal. |
|
GT
Expression Type: greater. |
|
LE
Expression Type: less or equal. |
|
LT
Expression Type: less. |
|
NE
Expression Type: not equal. |
Field Summary | |
---|---|
java.lang.String |
name
String representation. |
Method Summary | |
---|---|
abstract boolean |
eval(Item v1,
Item v2)
Evaluates the expression. |
java.lang.String |
toString()
|
static Comp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Comp[] |
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 Comp LE
public static final Comp LT
public static final Comp GE
public static final Comp GT
public static final Comp EQ
public static final Comp NE
public static final Comp APPR
public static final Comp APPRWORD
Field Detail |
---|
public final java.lang.String name
Method Detail |
---|
public static Comp[] values()
for (Comp c : Comp.values()) System.out.println(c);
public static Comp 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 abstract boolean eval(Item v1, Item v2)
v1
- first valuev2
- second value
public java.lang.String toString()
toString
in class java.lang.Enum<Comp>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |