gnu.xquery.util
Class Compare

java.lang.Object
  extended by gnu.mapping.PropertySet
      extended by gnu.mapping.Procedure
          extended by gnu.mapping.Procedure2
              extended by gnu.xquery.util.Compare
All Implemented Interfaces:
CanInline, Named

public class Compare
extends Procedure2
implements CanInline

Compares two values (or sequences) according to XPath semantics.


Field Summary
static Compare $Eq
           
static Compare $Ex$Eq
           
static Compare $Gr
           
static Compare $Gr$Eq
           
static Compare $Ls
           
static Compare $Ls$Eq
           
static Compare valEq
           
static Compare valGe
           
static Compare valGt
           
static Compare valLe
           
static Compare valLt
           
static Compare valNe
           
 
Constructor Summary
Compare()
           
 
Method Summary
static boolean apply(int flags, java.lang.Object arg1, java.lang.Object arg2, NamedCollator collator)
           
 java.lang.Object apply2(java.lang.Object arg1, java.lang.Object arg2)
           
static boolean atomicCompare(int flags, java.lang.Object arg1, java.lang.Object arg2, NamedCollator collator)
           
static boolean equalityComparison(int flags)
           
 Expression inline(ApplyExp exp, ExpWalker walker)
          Inline an application of this Procedure and return result.
static Compare make(java.lang.String name, int flags)
           
 
Methods inherited from class gnu.mapping.Procedure2
apply0, apply1, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
 
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

$Eq

public static final Compare $Eq

$Ex$Eq

public static final Compare $Ex$Eq

$Gr

public static final Compare $Gr

$Gr$Eq

public static final Compare $Gr$Eq

$Ls

public static final Compare $Ls

$Ls$Eq

public static final Compare $Ls$Eq

valEq

public static final Compare valEq

valNe

public static final Compare valNe

valGt

public static final Compare valGt

valGe

public static final Compare valGe

valLt

public static final Compare valLt

valLe

public static final Compare valLe
Constructor Detail

Compare

public Compare()
Method Detail

make

public static Compare make(java.lang.String name,
                           int flags)

apply

public static boolean apply(int flags,
                            java.lang.Object arg1,
                            java.lang.Object arg2,
                            NamedCollator collator)

equalityComparison

public static boolean equalityComparison(int flags)

atomicCompare

public static boolean atomicCompare(int flags,
                                    java.lang.Object arg1,
                                    java.lang.Object arg2,
                                    NamedCollator collator)

apply2

public java.lang.Object apply2(java.lang.Object arg1,
                               java.lang.Object arg2)
Specified by:
apply2 in class Procedure2

inline

public Expression inline(ApplyExp exp,
                         ExpWalker walker)
Description copied from interface: CanInline
Inline an application of this Procedure and return result. Can return original expression.

Specified by:
inline in interface CanInline