Class DMNFunctionWithReturnType

  • All Implemented Interfaces:
    org.kie.dmn.feel.runtime.FEELFunction

    public class DMNFunctionWithReturnType
    extends org.kie.dmn.feel.runtime.functions.BaseFEELFunction
    FEEL does not define the return type for function definition in its grammar. While on FEEL layer the type could be inferred, at DMN layer this is governed in BKM case by the
    • Constructor Detail

      • DMNFunctionWithReturnType

        public DMNFunctionWithReturnType​(org.kie.dmn.feel.runtime.FEELFunction wrapped,
                                         org.kie.dmn.api.core.DMNType returnType,
                                         DMNMessageManager msgMgr,
                                         org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode node)
    • Method Detail

      • invokeReflectively

        @GwtIncompatible
        public Object invokeReflectively​(org.kie.dmn.feel.lang.EvaluationContext ctx,
                                         Object[] params)
        Specified by:
        invokeReflectively in interface org.kie.dmn.feel.runtime.FEELFunction
        Overrides:
        invokeReflectively in class org.kie.dmn.feel.runtime.functions.BaseFEELFunction
      • getSymbol

        public org.kie.dmn.feel.lang.Symbol getSymbol()
        Specified by:
        getSymbol in interface org.kie.dmn.feel.runtime.FEELFunction
        Overrides:
        getSymbol in class org.kie.dmn.feel.runtime.functions.BaseFEELFunction
      • getParameters

        public List<List<org.kie.dmn.feel.runtime.FEELFunction.Param>> getParameters()
        Specified by:
        getParameters in interface org.kie.dmn.feel.runtime.FEELFunction
        Overrides:
        getParameters in class org.kie.dmn.feel.runtime.functions.BaseFEELFunction
      • getName

        public String getName()
        Specified by:
        getName in interface org.kie.dmn.feel.runtime.FEELFunction
        Overrides:
        getName in class org.kie.dmn.feel.runtime.functions.BaseFEELFunction