| Modifier and Type | Field and Description |
|---|---|
| public static final int | ABS
ABS(). |
| public static final int | CEIL
CEIL() or CEILING(). |
| private TypeInfo | |
| public static final int | FLOOR
FLOOR(). |
| private final int | |
| public static final int | MOD
MOD(). |
| private static final String[] | |
| public static final int | ROUND
ROUND() (non-standard) |
| public static final int | ROUNDMAGIC
ROUNDMAGIC() (non-standard) |
| public static final int | SIGN
SIGN() (non-standard) |
| public static final int | TRUNC
TRUNC() (non-standard) |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public String | |
| public Value | getValue(SessionLocal
the session session, Value the value of first argument v1, Value the value of second argument, or v2)nullOverrides org. Returns the value of this function. |
| public Expression | optimize(SessionLocal
the session session)Implements abstract org. Try to optimize the expression. |
| private Expression | Returns: the optimized expression ornull if this function should
be usedthe scale, if known scale, boolean whether scale is known scaleIsKnown, boolean whether scale is scaleIsNull, boolean NULLtrue if result of rounding can have larger precision
than precision of argument, false otherwiseOptimizes rounding and truncation functions. |
| private Expression | |
| private Value | |
| private static double |
| ABS | back to summary |
|---|---|
| public static final int ABS ABS(). | |
| CEIL | back to summary |
|---|---|
| public static final int CEIL CEIL() or CEILING(). | |
| commonType | back to summary |
|---|---|
| private TypeInfo commonType | |
| FLOOR | back to summary |
|---|---|
| public static final int FLOOR FLOOR(). | |
| function | back to summary |
|---|---|
| private final int function | |
| MOD | back to summary |
|---|---|
| public static final int MOD MOD(). | |
| NAMES | back to summary |
|---|---|
| private static final String[] NAMES | |
| ROUND | back to summary |
|---|---|
| public static final int ROUND ROUND() (non-standard) | |
| ROUNDMAGIC | back to summary |
|---|---|
| public static final int ROUNDMAGIC ROUNDMAGIC() (non-standard) | |
| SIGN | back to summary |
|---|---|
| public static final int SIGN SIGN() (non-standard) | |
| TRUNC | back to summary |
|---|---|
| public static final int TRUNC TRUNC() (non-standard) | |
| MathFunction | back to summary |
|---|---|
| public MathFunction(Expression arg1, Expression arg2, int function) | |
| checkScale | back to summary |
|---|---|
| private static int checkScale(Value v) | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name. | |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session, Value v1, Value v2) Overrides org. Doc from org. Returns the value of this function.
| |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Implements abstract org. Doc from org. Try to optimize the expression.
| |
| optimizeRound | back to summary |
|---|---|
| private Expression optimizeRound(int scale, boolean scaleIsKnown, boolean scaleIsNull, boolean possibleRoundUp) Optimizes rounding and truncation functions.
| |
| optimizeRoundWithScale | back to summary |
|---|---|
| private Expression optimizeRoundWithScale(SessionLocal session, boolean possibleRoundUp) | |
| round | back to summary |
|---|---|
private Value round(Value v1, Value v2, RoundingMode roundingMode)
| |
| roundMagic | back to summary |
|---|---|
| private static double roundMagic(double d) | |