Class BaseFEELFunction
- java.lang.Object
-
- org.kie.dmn.feel.runtime.functions.BaseFEELFunction
-
- All Implemented Interfaces:
org.kie.dmn.feel.runtime.FEELFunction
- Direct Known Subclasses:
DateAndTimeFunction,DateFunction,DurationFunction,InvokeFunction,MatchesFunction,StringFunction,SubstringFunction,TimeFunction
public abstract class BaseFEELFunction extends Object implements org.kie.dmn.feel.runtime.FEELFunction
-
-
Constructor Summary
Constructors Constructor Description BaseFEELFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()protected ObjectgetParam(String paramName, Object[] params)List<List<org.kie.dmn.feel.runtime.FEELFunction.Param>>getParameters()org.kie.dmn.feel.lang.SymbolgetSymbol()Objectinvoke(org.kie.dmn.feel.lang.EvaluationContext ctx, Object[] params)this method should be overriden by custom function implementations that should be invoked reflectivelyObjectinvokeReflectively(org.kie.dmn.feel.lang.EvaluationContext ctx, Object[] params)protected booleanisCustomFunction()voidsetName(String name)
-
-
-
Constructor Detail
-
BaseFEELFunction
public BaseFEELFunction(String name)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.kie.dmn.feel.runtime.FEELFunction
-
setName
public void setName(String name)
-
getSymbol
public org.kie.dmn.feel.lang.Symbol getSymbol()
- Specified by:
getSymbolin interfaceorg.kie.dmn.feel.runtime.FEELFunction
-
invokeReflectively
public Object invokeReflectively(org.kie.dmn.feel.lang.EvaluationContext ctx, Object[] params)
- Specified by:
invokeReflectivelyin interfaceorg.kie.dmn.feel.runtime.FEELFunction
-
invoke
public Object invoke(org.kie.dmn.feel.lang.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<org.kie.dmn.feel.runtime.FEELFunction.Param>> getParameters()
- Specified by:
getParametersin interfaceorg.kie.dmn.feel.runtime.FEELFunction
-
isCustomFunction
protected boolean isCustomFunction()
-
-