| java.lang.Object org.apache.fop.fo.expr.NumericOp
NumericOp | public class NumericOp (Code) | | This class contains static methods to evaluate operations on Numeric
operands. If the operands are absolute numerics the result is computed
rigth away and a new absolute numeric is return. If one of the operands are
relative a n operation node is created with the operation and the operands.
The evaluation of the operation can then occur when getNumericValue() is
called.
|
Method Summary | |
public static Numeric | abs(Numeric op) Return the absolute value of a Numeric.
Parameters: op - the operand. | public static Numeric | abs2(Numeric op, PercentBaseContext context) | public static Numeric | addition(Numeric op1, Numeric op2) Add the two operands and return a new Numeric representing the result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | addition2(Numeric op1, Numeric op2, PercentBaseContext context) | public static Numeric | divide(Numeric op1, Numeric op2) Divide the second operand into the first and return a new
Numeric representing the
result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | divide2(Numeric op1, Numeric op2, PercentBaseContext context) | public static Numeric | max(Numeric op1, Numeric op2) Return the larger of the two Numerics.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | max2(Numeric op1, Numeric op2, PercentBaseContext context) | public static Numeric | min(Numeric op1, Numeric op2) Return the smaller of two Numerics.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | min2(Numeric op1, Numeric op2, PercentBaseContext context) | public static Numeric | modulo(Numeric op1, Numeric op2) Return the remainder of a division of the two operand Numeric.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | modulo2(Numeric op1, Numeric op2, PercentBaseContext context) | public static Numeric | multiply(Numeric op1, Numeric op2) Multiply the two operands and return a new Numeric representing the
result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | multiply2(Numeric op1, Numeric op2, PercentBaseContext context) | public static Numeric | negate(Numeric op) Return the negation of a Numeric.
Parameters: op - the operand. | public static Numeric | negate2(Numeric op, PercentBaseContext context) | public static Numeric | subtraction(Numeric op1, Numeric op2) Add the second operand from the first and return a new Numeric
representing the result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. | public static Numeric | subtraction2(Numeric op1, Numeric op2, PercentBaseContext context) |
abs | public static Numeric abs(Numeric op) throws PropertyException(Code) | | Return the absolute value of a Numeric.
Parameters: op - the operand. a new Numeric object representing the absolute value of the operand. |
addition | public static Numeric addition(Numeric op1, Numeric op2) throws PropertyException(Code) | | Add the two operands and return a new Numeric representing the result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. A Numeric representing the result. throws: PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric. |
divide | public static Numeric divide(Numeric op1, Numeric op2) throws PropertyException(Code) | | Divide the second operand into the first and return a new
Numeric representing the
result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. A Numeric representing the result. throws: PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric. |
max | public static Numeric max(Numeric op1, Numeric op2) throws PropertyException(Code) | | Return the larger of the two Numerics.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. a Numeric which is the maximum of the two operands. throws: PropertyException - if the dimensions or value types of the operands are different. |
min | public static Numeric min(Numeric op1, Numeric op2) throws PropertyException(Code) | | Return the smaller of two Numerics.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. a Numeric which is the minimum of the two operands. throws: PropertyException - if the dimensions or value types of the operands are different. |
modulo | public static Numeric modulo(Numeric op1, Numeric op2) throws PropertyException(Code) | | Return the remainder of a division of the two operand Numeric.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. A new Numeric object representing the absolute value. |
multiply | public static Numeric multiply(Numeric op1, Numeric op2) throws PropertyException(Code) | | Multiply the two operands and return a new Numeric representing the
result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. A Numeric representing the result. throws: PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric. |
negate | public static Numeric negate(Numeric op) throws PropertyException(Code) | | Return the negation of a Numeric.
Parameters: op - the operand. a new Numeric object representing the negation of the operand. |
subtraction | public static Numeric subtraction(Numeric op1, Numeric op2) throws PropertyException(Code) | | Add the second operand from the first and return a new Numeric
representing the result.
Parameters: op1 - The first operand. Parameters: op2 - The second operand. A Numeric representing the result. throws: PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric. |
|
|