Convert String to Code

前端 未结 18 964
轮回少年
轮回少年 2020-11-22 09:27

I want to know if there is any way to convert a String to Java compilable code.

I have a comparative expression saved in a database field. I want to re

18条回答
  •  遥遥无期
    2020-11-22 10:02

    Groovy might also be an option for you.

    It integrates cleanly with the Bean Scripting Framework, can be embedded directly quite easily and might be ok, syntax-wise, for you.

提交回复
热议问题