gnu.xquery.util
Class Compare
java.lang.Object
gnu.mapping.PropertySet
gnu.mapping.Procedure
gnu.mapping.Procedure2
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.
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,
InlineCalls walker,
boolean argsInlined)
Inline an application of this Procedure and return result. |
static Compare |
make(java.lang.String name,
int flags)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
$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
Compare
public Compare()
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,
InlineCalls walker,
boolean argsInlined)
- Description copied from interface:
CanInline
- Inline an application of this Procedure and return result.
Unless
argsInlined
is true, then this method
is responsible for walking exp.getArgs()
;
you can handle this using exp.getArgs(walker, argsInlined)
.
(The exp.getFunction()
has been walked, regardless.)
- Specified by:
inline
in interface CanInline
argsInlined
- true if the arguments have been inlined.
Can return original expression.