org.ofbiz.minilang.method.otherops
Class Calculate.CalcOp

java.lang.Object
  extended by org.ofbiz.minilang.method.otherops.Calculate.CalcOp
All Implemented Interfaces:
Calculate.SubCalc
Enclosing class:
Calculate

protected static class Calculate.CalcOp
extends java.lang.Object
implements Calculate.SubCalc


Field Summary
static int OPERATOR_ADD
           
static int OPERATOR_DIVIDE
           
static int OPERATOR_MULTIPLY
           
static int OPERATOR_NEGATIVE
           
static int OPERATOR_SUBTRACT
           
 
Constructor Summary
Calculate.CalcOp(org.w3c.dom.Element element)
           
 
Method Summary
 java.math.BigDecimal calcValue(MethodContext methodContext, int scale, int roundingMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATOR_ADD

public static final int OPERATOR_ADD
See Also:
Constant Field Values

OPERATOR_SUBTRACT

public static final int OPERATOR_SUBTRACT
See Also:
Constant Field Values

OPERATOR_MULTIPLY

public static final int OPERATOR_MULTIPLY
See Also:
Constant Field Values

OPERATOR_DIVIDE

public static final int OPERATOR_DIVIDE
See Also:
Constant Field Values

OPERATOR_NEGATIVE

public static final int OPERATOR_NEGATIVE
See Also:
Constant Field Values
Constructor Detail

Calculate.CalcOp

public Calculate.CalcOp(org.w3c.dom.Element element)
Method Detail

calcValue

public java.math.BigDecimal calcValue(MethodContext methodContext,
                                      int scale,
                                      int roundingMode)
Specified by:
calcValue in interface Calculate.SubCalc