org.basex.query.expr
Enum CmpN.OpN

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

public static enum CmpN.OpN
extends java.lang.Enum<CmpN.OpN>

Comparators.


Enum Constant Summary
EQ
          Node comparison: same.
ET
          Node comparison: before.
GT
          Node comparison: after.
 
Field Summary
 java.lang.String name
          String representation.
static CmpN.OpN[] VALUES
          Cached enums (faster).
 
Method Summary
abstract  boolean eval(ANode a, ANode b)
          Evaluates the expression.
 java.lang.String toString()
           
static CmpN.OpN valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CmpN.OpN[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, 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.OpN EQ
Node comparison: same.


ET

public static final CmpN.OpN ET
Node comparison: before.


GT

public static final CmpN.OpN GT
Node comparison: after.

Field Detail

VALUES

public static final CmpN.OpN[] VALUES
Cached enums (faster).


name

public final java.lang.String name
String representation.

Method Detail

values

public static CmpN.OpN[] 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.OpN c : CmpN.OpN.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.OpN valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

eval

public abstract boolean eval(ANode a,
                             ANode b)
Evaluates the expression.

Parameters:
a - first node
b - second node
Returns:
result

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<CmpN.OpN>