Package org.faktorips.fl
Enum Operation
- All Implemented Interfaces:
Serializable,Comparable<Operation>,java.lang.constant.Constable
Lists all operations the formula language supports.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDecimal + DecimalDecimal + intDecimal + Integerint + DecimalInteger + Decimalint + intMoney + MoneyString + StringDecimal / DecimalMoney / DecimalDecimal = DecimalObject = ObjectMoney = Moneyboolean = booleanint = intString = StringDecimal > DecimalMoney > MoneyDecimal ≥ DecimalMoney ≥ MoneyDecimal < DecimalMoney < MoneyDecimal ≤ DecimalMoney ≤ Money- Decimal- Integer- Money- intDecimal * DecimalDecimal * MoneyInteger * Moneyint * intMoney * DecimalDecimal != DecimalMoney != Money(Decimal)(int)(Money)(String)+ Decimal+ Integer+ Money+ intDecimal - Decimalint - intMoney - Money -
Method Summary
Modifier and TypeMethodDescriptionorg.faktorips.datatype.DatatypegetLhs()Returns the left-hand-side operand used if this is a binary operation.org.faktorips.datatype.DatatypeReturns the operand used if this is a unary operation.Returns the operator used by the operation.org.faktorips.datatype.DatatypegetRhs()Returns the right-hand-side operand used if this is a binary operation.toString()static OperationReturns the enum constant of this type with the specified name.static Operation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PlusDecimal
+ Decimal- See Also:
-
Datatype.DECIMAL
-
PlusPrimitiveInt
+ int- See Also:
-
Datatype.PRIMITIVE_INT
-
PlusInteger
+ Integer- See Also:
-
Datatype.INTEGER
-
PlusMoney
+ Money- See Also:
-
Datatype.MONEY
-
MinusDecimal
- Decimal- See Also:
-
Datatype.DECIMAL
-
MinusInteger
- Integer- See Also:
-
Datatype.INTEGER
-
MinusPrimitiveInt
- int- See Also:
-
Datatype.PRIMITIVE_INT
-
MinusMoney
- Money- See Also:
-
Datatype.MONEY
-
AddIntInt
int + int- See Also:
-
Datatype.PRIMITIVE_INT
-
AddDecimalInt
Decimal + int- See Also:
-
Datatype.PRIMITIVE_INTDatatype.DECIMAL
-
AddIntDecimal
int + Decimal- See Also:
-
Datatype.PRIMITIVE_INTDatatype.DECIMAL
-
AddDecimalInteger
Decimal + Integer- See Also:
-
Datatype.INTEGERDatatype.DECIMAL
-
AddIntegerDecimal
Integer + Decimal- See Also:
-
Datatype.INTEGERDatatype.DECIMAL
-
AddDecimalDecimal
Decimal + Decimal- See Also:
-
Datatype.DECIMAL
-
AddMoneyMoney
Money + Money- See Also:
-
Datatype.MONEY
-
AddStringString
String + String- See Also:
-
Datatype.STRING
-
SubtractIntInt
int - int- See Also:
-
Datatype.PRIMITIVE_INT
-
SubtractDecimalDecimal
Decimal - Decimal- See Also:
-
Datatype.DECIMAL
-
SubtractMoneyMoney
Money - Money- See Also:
-
Datatype.MONEY
-
MultiplyIntInt
int * int- See Also:
-
Datatype.PRIMITIVE_INT
-
MultiplyDecimalMoney
Decimal * Money- See Also:
-
Datatype.DECIMALDatatype.MONEY
-
MultiplyMoneyDecimal
Money * Decimal- See Also:
-
Datatype.DECIMALDatatype.MONEY
-
MultiplyIntegerMoney
Integer * Money- See Also:
-
Datatype.INTEGERDatatype.MONEY
-
MultiplyDecimalDecimal
Decimal * Decimal- See Also:
-
Datatype.DECIMAL
-
DivideDecimalDecimal
Decimal / Decimal- See Also:
-
Datatype.DECIMAL
-
DivideMoneyDecimal
Money / Decimal- See Also:
-
Datatype.MONEYDatatype.DECIMAL
-
GreaterThanDecimalDecimal
Decimal > Decimal- See Also:
-
Datatype.DECIMAL
-
GreaterThanMoneyMoney
Money > Money- See Also:
-
Datatype.MONEY
-
GreaterThanOrEqualDecimalDecimal
Decimal ≥ Decimal- See Also:
-
Datatype.DECIMAL
-
GreaterThanOrEqualMoneyMoney
Money ≥ Money- See Also:
-
Datatype.MONEY
-
LessThanDecimalDecimal
Decimal < Decimal- See Also:
-
Datatype.DECIMAL
-
LessThanMoneyMoney
Money < Money- See Also:
-
Datatype.MONEY
-
LessThanOrEqualDecimalDecimal
Decimal ≤ Decimal- See Also:
-
Datatype.DECIMAL
-
LessThanOrEqualMoneyMoney
Money ≤ Money- See Also:
-
Datatype.MONEY
-
EqualsPrimtiveInt
int = int- See Also:
-
Datatype.PRIMITIVE_INT
-
EqualsPrimtiveBoolean
boolean = boolean- See Also:
-
Datatype.PRIMITIVE_BOOLEAN
-
EqualsDecimal
Decimal = Decimal- See Also:
-
Datatype.DECIMAL
-
EqualsMoney
Money = Money- See Also:
-
Datatype.MONEY
-
EqualsString
String = String- See Also:
-
Datatype.STRING
-
EqualsInstance
Object = Object- See Also:
-
AnyDatatype
-
NotEqualsDecimal
Decimal != Decimal- See Also:
-
Datatype.DECIMAL
-
NotEqualsMoney
Money != Money- See Also:
-
Datatype.MONEY
-
ParenthesisInt
(int)- See Also:
-
Datatype.PRIMITIVE_INT
-
ParenthesisDecimal
(Decimal)- See Also:
-
Datatype.DECIMAL
-
ParenthesisMoney
(Money)- See Also:
-
Datatype.MONEY
-
ParenthesisString
(String)- See Also:
-
Datatype.STRING
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getOperator
Returns the operator used by the operation. -
getOperand
public org.faktorips.datatype.Datatype getOperand()Returns the operand used if this is a unary operation.- Throws:
IllegalStateException- if this is not a unary operation.
-
getLhs
public org.faktorips.datatype.Datatype getLhs()Returns the left-hand-side operand used if this is a binary operation.- Throws:
IllegalStateException- if this is not a binary operation.
-
getRhs
public org.faktorips.datatype.Datatype getRhs()Returns the right-hand-side operand used if this is a binary operation.- Throws:
IllegalStateException- if this is not a binary operation.
-
toString
-