Package org.kie.dmn.feel.runtime
Interface FEELFunction
-
- All Known Implementing Classes:
AbsFunction,AbstractCustomFEELFunction,AfterFunction,AllFunction,AnyFunction,AppendFunction,BaseFEELFunction,BeforeFunction,CeilingFunction,CeilingFunction,CodeFunction,CoincidesFunction,CompiledCustomFEELFunction,ConcatenateFunction,ContainsFunction,ContextFunction,ContextMergeFunction,ContextPutFunction,CountFunction,CustomFEELFunction,DateAndTimeFunction,DateFunction,DateFunction,DayOfWeekFunction,DayOfYearFunction,DecimalFunction,DecisionTableFunction,DistinctValuesFunction,DTInvokerFunction,DurationFunction,DurationFunction,DuringFunction,EndsWithFunction,EvenFunction,ExpFunction,FinishedByFunction,FinishesFunction,FlattenFunction,FloorFunction,FloorFunction,GetEntriesFunction,GetValueFunction,IncludesFunction,IndexOfFunction,InsertBeforeFunction,InvokeFunction,IsFunction,JavaFunction,ListContainsFunction,LogFunction,MatchesFunction,MaxFunction,MeanFunction,MedianFunction,MeetsFunction,MetByFunction,MinFunction,ModeFunction,ModuloFunction,MonthOfYearFunction,NNAllFunction,NNAnyFunction,NNCountFunction,NNMaxFunction,NNMeanFunction,NNMedianFunction,NNMinFunction,NNModeFunction,NNStddevFunction,NNSumFunction,NotFunction,NowFunction,NumberFunction,OddFunction,OverlapsAfterFunction,OverlapsBeforeFunction,OverlapsFunction,ProductFunction,RangeFunction,RemoveFunction,ReplaceFunction,ReverseFunction,RoundDownFunction,RoundHalfDownFunction,RoundHalfUpFunction,RoundUpFunction,SortFunction,SplitFunction,SqrtFunction,StartedByFunction,StartsFunction,StartsWithFunction,StddevFunction,StringFunction,StringJoinFunction,StringLengthFunction,StringLowerCaseFunction,StringUpperCaseFunction,SublistFunction,SubstringAfterFunction,SubstringBeforeFunction,SubstringFunction,SumFunction,TimeFunction,TimeFunction,TodayFunction,UnionFunction,WeekOfYearFunction,YearsAndMonthsFunction
public interface FEELFunctionAn interface for all FEEL functions, custom or built-in
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFEELFunction.Param
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Returns the name of the functionList<List<FEELFunction.Param>>getParameters()Returns the parameter for each supported signature.SymbolgetSymbol()Returns the Symbol of the functionObjectinvokeReflectively(EvaluationContext ctx, Object[] params)Invokes the function reflectively based on the parameters
-
-
-
Method Detail
-
getName
String getName()
Returns the name of the function- Returns:
-
getSymbol
Symbol getSymbol()
Returns the Symbol of the function- Returns:
-
getParameters
List<List<FEELFunction.Param>> getParameters()
Returns the parameter for each supported signature.- Returns:
- a List of Lists of Strings with the parameters. For a function with multiple signatures, each element of the list returns the parameters of one signature. E.g.: the substring function has 2 supported signatures: substring( string, start position ) substring( string, start position, length ) So this method will return: { { "string", "start position" }, { "string", "start position", "length" } }
-
invokeReflectively
Object invokeReflectively(EvaluationContext ctx, Object[] params)
Invokes the function reflectively based on the parameters- Parameters:
ctx-params-- Returns:
-
-