Class DMNFEELHelper


  • public class DMNFEELHelper
    extends Object
    • Constructor Detail

      • DMNFEELHelper

        public DMNFEELHelper​(List<org.kie.dmn.feel.lang.FEELProfile> feelProfiles)
      • DMNFEELHelper

        public DMNFEELHelper​(ClassLoader classLoader,
                             List<org.kie.dmn.feel.lang.FEELProfile> feelProfiles)
    • Method Detail

      • newFEELInstance

        public org.kie.dmn.feel.FEEL newFEELInstance()
        Return a FEEL instance to be used in invokers/impls, which is however configured correctly accordingly to profiles This FEEL instance is potentially not the same shared by the compiler during the compilation phase.
      • valueMatchesInUnaryTests

        public static boolean valueMatchesInUnaryTests​(List<org.kie.dmn.feel.runtime.UnaryTest> unaryTests,
                                                       Object value,
                                                       org.kie.dmn.api.core.DMNContext dmnContext)
      • evaluateFunctionDef

        public org.kie.dmn.feel.runtime.FEELFunction evaluateFunctionDef​(DMNCompilerContext ctx,
                                                                         org.kie.dmn.feel.lang.CompiledExpression expression,
                                                                         DMNModelImpl model,
                                                                         org.kie.dmn.model.api.DMNElement element,
                                                                         Msg.Message errorMsg,
                                                                         Object... msgParams)
      • processEvents

        public void processEvents​(DMNModelImpl model,
                                  org.kie.dmn.model.api.DMNElement element,
                                  Msg.Message msg,
                                  Object... msgParams)
      • generateUnaryTestsSource

        public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration generateUnaryTestsSource​(org.kie.dmn.feel.lang.CompilerContext compilerContext,
                                                                                                   String unaryTests,
                                                                                                   org.kie.dmn.feel.lang.Type inputColumnType,
                                                                                                   boolean isStatic)
      • generateStaticUnaryTestsSource

        public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration generateStaticUnaryTestsSource​(org.kie.dmn.feel.lang.CompilerContext compilerContext,
                                                                                                         String unaryTests,
                                                                                                         org.kie.dmn.feel.lang.Type inputColumnType)
      • newEvaluationContext

        public org.kie.dmn.feel.lang.impl.EvaluationContextImpl newEvaluationContext​(Collection<org.kie.dmn.api.feel.runtime.events.FEELEventListener> listeners,
                                                                                     Map<String,​Object> inputVariables)
      • evaluateUnaryTests

        public List<org.kie.dmn.feel.runtime.UnaryTest> evaluateUnaryTests​(String expression,
                                                                           Map<String,​org.kie.dmn.feel.lang.Type> variableTypes)
      • newCompilerContext

        public org.kie.dmn.feel.lang.CompilerContext newCompilerContext()
      • compile

        @Deprecated
        public org.kie.dmn.feel.lang.CompiledExpression compile​(DMNModelImpl model,
                                                                org.kie.dmn.model.api.DMNElement element,
                                                                Msg.Message msg,
                                                                String dtableName,
                                                                String expr,
                                                                org.kie.dmn.feel.lang.CompilerContext feelctx,
                                                                int index)
        Deprecated.
      • generateFeelExpressionSource

        public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration generateFeelExpressionSource​(String input,
                                                                                                       org.kie.dmn.feel.lang.CompilerContext compilerContext1)
      • generateFeelExpressionCompilationUnit

        public com.github.javaparser.ast.CompilationUnit generateFeelExpressionCompilationUnit​(String input,
                                                                                               org.kie.dmn.feel.lang.CompilerContext compilerContext1)