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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.kie.dmn.feel.runtime.FEELFunction

        org.kie.dmn.feel.runtime.FEELFunction.Param
    • Constructor Summary

      Constructors 
      Constructor Description
      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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      java.util.List<java.util.List<org.kie.dmn.feel.runtime.FEELFunction.Param>> getParameters()  
      org.kie.dmn.feel.lang.Symbol getSymbol()  
      java.lang.Object invokeReflectively​(org.kie.dmn.feel.lang.EvaluationContext ctx, java.lang.Object[] params)  
      java.lang.String toString()  
      • Methods inherited from class org.kie.dmn.feel.runtime.functions.BaseFEELFunction

        invoke, isCustomFunction, setName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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

        public java.lang.Object invokeReflectively​(org.kie.dmn.feel.lang.EvaluationContext ctx,
                                                   java.lang.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 java.util.List<java.util.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 java.lang.String getName()
        Specified by:
        getName in interface org.kie.dmn.feel.runtime.FEELFunction
        Overrides:
        getName in class org.kie.dmn.feel.runtime.functions.BaseFEELFunction
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object