Class MathProcessor
java.lang.Object
org.mvel2.math.MathProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Object_doOperations(int type1, Object val1, int operation, int type2, Object val2) private static BigDecimalasBigDecimal(Object in) private static intbox(int type) private static ObjectdoBigDecimalArithmetic(BigDecimal val1, int operation, BigDecimal val2, boolean iNumber, int returnTarget) private static ObjectdoOperationNonNumeric(int type1, Object val1, int operation, Object val2) static ObjectdoOperations(int type1, Object val1, int operation, int type2, Object val2) static ObjectdoOperations(Object val1, int operation, int type2, Object val2) static ObjectdoOperations(Object val1, int operation, Object val2) private static ObjectdoOperationsSameType(int type1, Object val1, int operation, Object val2) private static ObjectdoPrimWrapperArithmetic(Number val1, int operation, Number val2, int returnTarget) private static Doubleprivate static booleanisIntegerType(int type) private static booleanisNumericOperation(int type1, Object val1, int operation, int type2, Object val2) private static BooleansafeEquals(Object val1, Object val2) private static BooleansafeNotEquals(Object val1, Object val2) private static doubleprivate static floatprivate static intprivate static longprivate static shortprivate static Object
-
Field Details
-
MATH_CONTEXT
-
-
Constructor Details
-
MathProcessor
public MathProcessor()
-
-
Method Details
-
doOperations
-
doOperations
-
doOperations
-
doPrimWrapperArithmetic
-
toType
-
doBigDecimalArithmetic
private static Object doBigDecimalArithmetic(BigDecimal val1, int operation, BigDecimal val2, boolean iNumber, int returnTarget) -
_doOperations
-
isNumericOperation
-
isIntegerType
private static boolean isIntegerType(int type) -
doOperationNonNumeric
-
safeEquals
-
safeNotEquals
-
doOperationsSameType
-
toShort
-
toInteger
-
toLong
-
toDouble
-
toFloat
-
box
private static int box(int type) -
getNumber
-
asBigDecimal
-