Convert String to Code

前端 未结 18 1071
轮回少年
轮回少年 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 09:47

    I have used both BeanShell and GroovyShell but performance wise, GroovyShell is way faster if you prase and cache the script.

提交回复
热议问题