| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectgnu.mapping.PropertySetgnu.mapping.Proceduregnu.mapping.ProcedureNgnu.kawa.functions.NumberCompareField Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
Fields inherited from class gnu.mapping.ProcedureN | |
noArgs | |
Method Summary | |
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
static boolean |
|
Object |
|
static boolean |
|
Object |
|
static boolean |
|
static boolean |
|
static int |
|
static int |
|
void |
|
protected Language | |
Type |
|
Expression | |
static NumberCompare | |
int |
|
Methods inherited from class gnu.mapping.Procedure | |
apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString | |
Methods inherited from class gnu.mapping.PropertySet | |
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol | |
public static final int TRUE_IF_EQU
- Field Value:
- 8
public static final int TRUE_IF_GRT
- Field Value:
- 16
public static final int TRUE_IF_LSS
- Field Value:
- 4
public static final int TRUE_IF_NAN
- Field Value:
- 2
public static final int TRUE_IF_NEQ
- Field Value:
- 1
public static boolean $Eq(Object arg1,
Object arg2)public static boolean $Eq$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)public static boolean $Gr(Object arg1,
Object arg2)public static boolean $Gr$Eq(Object arg1,
Object arg2)public static boolean $Gr$Eq$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)public static boolean $Gr$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)public static boolean $Ls(Object arg1,
Object arg2)public static boolean $Ls$Eq(Object arg1,
Object arg2)public static boolean $Ls$Eq$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)public static boolean $Ls$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)public static boolean apply2(int flags,
Object arg1,
Object arg2)public static boolean applyWithPromotion(int flags,
Object arg1,
Object arg2)public static boolean checkCompareCode(int code,
int flags)public static int compare(Object arg1,
Object arg2,
boolean exact)Compare two numbers.
- Parameters:
exact- true if we should compare exact/inexact numbers exactly (by converting the inexact number to exact), or inexactly (by "promoting" the exact to inexact) (as required for XQuery).
- Returns:
- 1 if
arg1>arg2; 0 ifarg1==arg2; -1 ifarg1; -2 if either is NaN; -3 if not comparable (either is not a number).
public static int compare(Object arg1,
int code1,
Object arg2,
int code2,
boolean exact)public void compile(ApplyExp exp, Compilation comp, Target target)
- Specified by:
- compile in interface Inlineable
public Type getReturnType(Expression[] args)
- Specified by:
- getReturnType in interface Inlineable