]
Edoardo Vacchi commented on DROOLS-3112:
----------------------------------------
poker: 3
FEEL Compiler: modularize FEELImpl compiler/interpreter vs.
DMNFEELHelper
--------------------------------------------------------------------------
Key: DROOLS-3112
URL:
https://issues.jboss.org/browse/DROOLS-3112
Project: Drools
Issue Type: Enhancement
Reporter: Edoardo Vacchi
Assignee: Edoardo Vacchi
Priority: Major
Labels: drools-core
Code in FEELImpl could be reused in the DMNFEELHelper, but it cannot be shared, because
FEELImpl exposes an interface to evaluate expressions, while DMNFEELHelper needs access to
the compiler backend.
Solution: separate the compilation pipeline and the interpreter pipeline from the public
FEEL interface to promote code reuse. In particular, CompilerBytecodeLoader can be
probably split between some kind of CompiledUnit+CompiledUnaryTest impls that provide
methods to retrieve Java source code and/or JVM bytecode.