Package org.faktorips.fl
Enum FunctionSignatures
- All Implemented Interfaces:
Serializable,Comparable<FunctionSignatures>,java.lang.constant.Constable
A list of all function signatures that are supported by the formula language.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturns the absolute value of the argument.
Decimal=Abs(Decimal)Returns whether all arguments aretrue.
boolean=And(boolean...)Returns the count of instances the object path references.
int=Count(ListOfTypeDatatype<Object>)Returns whether the argument is notnullor a Null-Object.
boolean=Exists(Object)Returns the second argument if the first argument istrue, the third argument if not.
Object=If(boolean, Object, Object)Returns the second argument if the first argument istrue, the third argument if not.Returns whether the argument is an empty array,nullor a Null-Object.
boolean=IsEmpty(Object)Returns the maximum of the two arguments.
Decimal=Max(Decimal,Decimal)Returns the maximum of the two arguments.
double=Max(double,double)Returns the maximum of the two arguments.
int=Max(int,int)Returns the maximum (greatest value) from a list of values.Returns the maximum of the two arguments.
long=Max(long,long)Returns the maximum of the two arguments.
Money=Max(Money,Money)Returns the minimum of the two arguments.
Decimal=Min(Decimal,Decimal)Returns the minimum of the two arguments.
double=Min(double,double)Returns the minimum of the two arguments.
int=Min(int,int)Returns the minimum (smallest value) from a list of values.Returns the minimum of the two arguments.
long=Min(long,long)Returns the minimum of the two arguments.
Decimal=Min(Money,Money)Returns the inverted argument.
boolean=Not(boolean)Returns the inverted argument.
Boolean=Not(Boolean)Returns whether one of the arguments istrue.
boolean=Or(boolean...)Returns the Decimal argument, to the power of the Integer value.
Decimal=ValueOf(Math.pow(Decimal.doubleValue(), Decimal.doubleValue()))Returns the int argument, to the power of the int value.
int = Math.pow(double, double).intValue()Returns the first argument, rounded to the scale given by the second argument.
Decimal=Round(Decimal, int)Returns the first argument, rounded down to the scale given by the second argument.
Decimal=RoundDown(Decimal, int)Returns the first argument, rounded up to the scale given by the second argument.
Decimal=RoundUp(Decimal, int)Returns the square root of the Decimal argument.
Decimal=ValueOf(Math.sqrt(Decimal.doubleValue()))Given an array of objects as the first argument returns the sum of the properties identified by the second argument.
Object=Sum(Object[], Property)Returns the sum of the values in the argument array.
Decimal=Sum(Decimal[])Returns the textual representation of the given argumentReturns the argument, rounded down to an Integer.
Integer=WholeNumber(Decimal) -
Method Summary
Modifier and TypeMethodDescriptionorg.faktorips.datatype.Datatype[]org.faktorips.datatype.DatatypegetType()booleanstatic FunctionSignaturesReturns the enum constant of this type with the specified name.static FunctionSignatures[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Abs
Returns the absolute value of the argument.
Decimal=Abs(Decimal)- See Also:
-
Datatype.DECIMAL
-
And
Returns whether all arguments aretrue.
boolean=And(boolean...)- See Also:
-
Datatype.PRIMITIVE_BOOLEAN
-
Exists
Returns whether the argument is notnullor a Null-Object.
boolean=Exists(Object)- See Also:
-
Datatype.PRIMITIVE_BOOLEANAnyDatatype
-
If
Returns the second argument if the first argument istrue, the third argument if not.
Object=If(boolean, Object, Object)- See Also:
-
Datatype.PRIMITIVE_BOOLEANAnyDatatype
-
IfBoolean
Returns the second argument if the first argument istrue, the third argument if not.nullis treated asfalse.
Object=If(Boolean, Object, Object)- See Also:
-
Datatype.BOOLEANAnyDatatype
-
IsEmpty
Returns whether the argument is an empty array,nullor a Null-Object.
boolean=IsEmpty(Object)- See Also:
-
Datatype.PRIMITIVE_BOOLEANAnyDatatype
-
MaxList
Returns the maximum (greatest value) from a list of values.- See Also:
-
ListOfTypeDatatypeAnyDatatype
-
MaxDecimal
Returns the maximum of the two arguments.
Decimal=Max(Decimal,Decimal)- See Also:
-
Datatype.DECIMAL
-
MaxDouble
Returns the maximum of the two arguments.
double=Max(double,double)- See Also:
-
Datatype.DOUBLE
-
MaxInt
Returns the maximum of the two arguments.
int=Max(int,int)- See Also:
-
Datatype.PRIMITIVE_INT
-
MaxLong
Returns the maximum of the two arguments.
long=Max(long,long)- See Also:
-
Datatype.PRIMITIVE_LONG
-
MaxMoney
Returns the maximum of the two arguments.
Money=Max(Money,Money)- See Also:
-
Datatype.MONEY
-
MinList
Returns the minimum (smallest value) from a list of values.- See Also:
-
ListOfTypeDatatypeAnyDatatype
-
MinDecimal
Returns the minimum of the two arguments.
Decimal=Min(Decimal,Decimal)- See Also:
-
Datatype.DECIMAL
-
MinDouble
Returns the minimum of the two arguments.
double=Min(double,double)- See Also:
-
Datatype.DOUBLE
-
MinInt
Returns the minimum of the two arguments.
int=Min(int,int)- See Also:
-
Datatype.PRIMITIVE_INT
-
MinLong
Returns the minimum of the two arguments.
long=Min(long,long)- See Also:
-
Datatype.PRIMITIVE_LONG
-
MinMoney
Returns the minimum of the two arguments.
Decimal=Min(Money,Money)- See Also:
-
Datatype.MONEY
-
Not
Returns the inverted argument.
boolean=Not(boolean)- See Also:
-
Datatype.PRIMITIVE_BOOLEAN
-
NotBoolean
Returns the inverted argument.
Boolean=Not(Boolean)- See Also:
-
Datatype.BOOLEAN
-
Or
Returns whether one of the arguments istrue.
boolean=Or(boolean...)- See Also:
-
Datatype.PRIMITIVE_BOOLEAN
-
Round
Returns the first argument, rounded to the scale given by the second argument.
Decimal=Round(Decimal, int)- See Also:
-
Datatype.DECIMAL
-
RoundDown
Returns the first argument, rounded down to the scale given by the second argument.
Decimal=RoundDown(Decimal, int)- See Also:
-
Datatype.DECIMAL
-
RoundUp
Returns the first argument, rounded up to the scale given by the second argument.
Decimal=RoundUp(Decimal, int)- See Also:
-
Datatype.DECIMAL
-
SumBeanArrayPropertyFct
Given an array of objects as the first argument returns the sum of the properties identified by the second argument.
Object=Sum(Object[], Property)- See Also:
-
SumBeanArrayPropertyFctAnyDatatype
-
SumDecimal
Returns the sum of the values in the argument array.
Decimal=Sum(Decimal[])- See Also:
-
Datatype.DECIMAL
-
SumList
-
WholeNumber
Returns the argument, rounded down to an Integer.
Integer=WholeNumber(Decimal)- See Also:
-
Datatype.INTEGERDatatype.DECIMAL
-
PowerDecimal
Returns the Decimal argument, to the power of the Integer value.
Decimal=ValueOf(Math.pow(Decimal.doubleValue(), Decimal.doubleValue()))- See Also:
-
Datatype.DECIMAL
-
PowerInt
Returns the int argument, to the power of the int value.
int = Math.pow(double, double).intValue()- See Also:
-
Datatype.PRIMITIVE_INT
-
SqrtDecimal
Returns the square root of the Decimal argument.
Decimal=ValueOf(Math.sqrt(Decimal.doubleValue()))- See Also:
-
Datatype.DECIMAL
-
Count
Returns the count of instances the object path references.
int=Count(ListOfTypeDatatype<Object>)- See Also:
-
Datatype.PRIMITIVE_INTListOfTypeDatatypeAnyDatatype
-
DAYS
-
WEEKS
-
MONTHS
-
YEARS
-
DATE
-
DAYS360
-
TextFunction
Returns the textual representation of the given argument- See Also:
-
AnyDatatype
-
-
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
-
getType
public org.faktorips.datatype.Datatype getType() -
getArgTypes
public org.faktorips.datatype.Datatype[] getArgTypes() -
hasVarArgs
public boolean hasVarArgs()
-