Class BaseFEELFunction
- java.lang.Object
-
- org.kie.dmn.feel.runtime.functions.BaseFEELFunction
-
- All Implemented Interfaces:
FEELFunction
- Direct Known Subclasses:
AbsFunction,AbstractCustomFEELFunction,AfterFunction,AllFunction,AnyFunction,AppendFunction,BeforeFunction,CeilingFunction,CeilingFunction,CodeFunction,CoincidesFunction,ConcatenateFunction,ContainsFunction,ContextFunction,ContextMergeFunction,ContextPutFunction,CountFunction,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,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 abstract class BaseFEELFunction extends Object implements FEELFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.dmn.feel.runtime.FEELFunction
FEELFunction.Param
-
-
Constructor Summary
Constructors Constructor Description BaseFEELFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete 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 functionObjectinvoke(EvaluationContext ctx, Object[] params)this method should be overriden by custom function implementations that should be invoked reflectivelyObjectinvokeReflectively(EvaluationContext ctx, Object[] params)Invokes the function reflectively based on the parametersprotected booleanisCustomFunction()voidsetName(String name)
-
-
-
Constructor Detail
-
BaseFEELFunction
public BaseFEELFunction(String name)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:FEELFunctionReturns the name of the function- Specified by:
getNamein interfaceFEELFunction- Returns:
-
setName
public void setName(String name)
-
getSymbol
public Symbol getSymbol()
Description copied from interface:FEELFunctionReturns the Symbol of the function- Specified by:
getSymbolin interfaceFEELFunction- Returns:
-
invokeReflectively
@GwtIncompatible public Object invokeReflectively(EvaluationContext ctx, Object[] params)
Description copied from interface:FEELFunctionInvokes the function reflectively based on the parameters- Specified by:
invokeReflectivelyin interfaceFEELFunction- Returns:
-
invoke
public Object invoke(EvaluationContext ctx, Object[] params)
this method should be overriden by custom function implementations that should be invoked reflectively- Parameters:
ctx-params-- Returns:
-
getParameters
public List<List<FEELFunction.Param>> getParameters()
Description copied from interface:FEELFunctionReturns the parameter for each supported signature.- Specified by:
getParametersin interfaceFEELFunction- 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" } }
-
isCustomFunction
protected boolean isCustomFunction()
-
-