public enum MathArithTypeEnum extends Enum<MathArithTypeEnum>
Modifier and Type | Class and Description |
---|---|
static class |
MathArithTypeEnum.AddBigDec
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.AddBigDecConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.AddBigInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.AddBigIntConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.AddDouble
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.AddFloat
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.AddInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.AddLong
Computer for type-specific arith.
|
static interface |
MathArithTypeEnum.Computer
Interface for number cruncher.
|
static class |
MathArithTypeEnum.DivideBigDec
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.DivideBigDecConvComputerBase
Computer for math op.
|
static class |
MathArithTypeEnum.DivideBigDecConvComputerNoMathCtx |
static class |
MathArithTypeEnum.DivideBigDecConvComputerWithMathCtx |
static class |
MathArithTypeEnum.DivideBigDecWMathContext
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.DivideBigIntConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.DivideDouble
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.DivideFloat
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.DivideInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.DivideLong
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.ModuloDouble
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.ModuloFloat
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.ModuloInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.ModuloLong
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.MultiplyBigDec
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.MultiplyBigDecConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.MultiplyBigInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.MultiplyBigIntConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.MultiplyDouble
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.MultiplyFloat
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.MultiplyInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.MultiplyLong
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.SubtractBigDec
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.SubtractBigDecConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.SubtractBigInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.SubtractBigIntConvComputer
Computer for math op.
|
static class |
MathArithTypeEnum.SubtractDouble
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.SubtractFloat
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.SubtractInt
Computer for type-specific arith.
|
static class |
MathArithTypeEnum.SubtractLong
Computer for type-specific arith.
|
Enum Constant and Description |
---|
ADD
Plus.
|
DIVIDE
Divide.
|
MODULO
Modulo.
|
MULTIPLY
Multiply.
|
SUBTRACT
Minus.
|
Modifier and Type | Method and Description |
---|---|
static CodegenExpression |
codegenAsDouble(CodegenExpression ref,
Class type) |
static CodegenExpression |
codegenAsFloat(CodegenExpression ref,
Class type) |
static CodegenExpression |
codegenAsInt(CodegenExpression ref,
Class type) |
static CodegenExpression |
codegenAsLong(CodegenExpression ref,
Class type) |
MathArithTypeEnum.Computer |
getComputer(Class coercedType,
Class typeOne,
Class typeTwo,
boolean isIntegerDivision,
boolean isDivisionByZeroReturnsNull,
MathContext optionalMathContext)
Returns number cruncher for the target coercion type.
|
String |
getExpressionText()
Returns string representation of enum.
|
static MathArithTypeEnum |
parseOperator(String operator)
Returns the math operator for the string.
|
static MathArithTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MathArithTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MathArithTypeEnum ADD
public static final MathArithTypeEnum SUBTRACT
public static final MathArithTypeEnum DIVIDE
public static final MathArithTypeEnum MULTIPLY
public static final MathArithTypeEnum MODULO
public static MathArithTypeEnum[] values()
for (MathArithTypeEnum c : MathArithTypeEnum.values()) System.out.println(c);
public static MathArithTypeEnum valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic MathArithTypeEnum.Computer getComputer(Class coercedType, Class typeOne, Class typeTwo, boolean isIntegerDivision, boolean isDivisionByZeroReturnsNull, MathContext optionalMathContext)
coercedType
- - target typetypeOne
- - the LHS typetypeTwo
- - the RHS typeisIntegerDivision
- - false for division returns double, true for using Java-standard integer divisionisDivisionByZeroReturnsNull
- - false for division-by-zero returns infinity, true for nulloptionalMathContext
- - math context or nullpublic String getExpressionText()
public static MathArithTypeEnum parseOperator(String operator)
operator
- to parsepublic static CodegenExpression codegenAsLong(CodegenExpression ref, Class type)
public static CodegenExpression codegenAsDouble(CodegenExpression ref, Class type)
public static CodegenExpression codegenAsInt(CodegenExpression ref, Class type)
public static CodegenExpression codegenAsFloat(CodegenExpression ref, Class type)