Java – expression parsing and evaluation Library
•
Java
I am looking for a parsing and parsing Java library Evaluate expression I searched and tried some libraries like Apache jexl and jeval, but they are not what I need
My request:
>Support all value types (i.e. int, double, Boolean, string, etc.) > support all known mathematical and mathematical logic operators (, –, *, <, < = etc.) > support variables (without any special symbols - for example, it should be written as #{a} - not good enough for me in jeval variables) > support customization functions - with type enforcement and verification functions
Any suggestions?
Solution
Try janino It is a runtime memory compiler that can be used as an expression evaluator Maybe it's right for you
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码