gnu.xquery.util
Class Compare

java.lang.Object
  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
           
 
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)
           
 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, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString
 
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
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)

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