org.basex.query.expr
Enum CmpN.Comp

java.lang.Object
  extended by java.lang.Enum<CmpN.Comp>
      extended by org.basex.query.expr.CmpN.Comp
All Implemented Interfaces:
Serializable, Comparable<CmpN.Comp>
Enclosing class:
CmpN

public static enum CmpN.Comp
extends Enum<CmpN.Comp>

Comparators.


Enum Constant Summary
EQ
          Node Comparison: same.
ET
          Node Comparison: before.
GT
          Node Comparison: after.
 
Field Summary
 String name
          String representation.
 
Method Summary
abstract  boolean e(Item a, Item b)
          Evaluates the expression.
 String toString()
           
static CmpN.Comp valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CmpN.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

EQ

public static final CmpN.Comp EQ
Node Comparison: same.


ET

public static final CmpN.Comp ET
Node Comparison: before.


GT

public static final CmpN.Comp GT
Node Comparison: after.

Field Detail

name

public final String name
String representation.

Method Detail

values

public static CmpN.Comp[] 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 (CmpN.Comp c : CmpN.Comp.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CmpN.Comp 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 name
NullPointerException - if the argument is null

e

public abstract boolean e(Item a,
                          Item b)
                   throws QueryException
Evaluates the expression.

Parameters:
a - first item
b - second item
Returns:
result
Throws:
QueryException - query exception

toString

public String toString()
Overrides:
toString in class Enum<CmpN.Comp>