I'm trying to create a expression designer in Java, any idea if there are something like that in the market? The expression that i need to build are like this:
- Var >= 5 Or Var = null
- Var2 > 20 开发者_运维知识库And Var2 < 50
- Var3 = 15
How can i do this?
Thanks.
Is this what you need?
if (Var >= 5 || var == null)
if (Var2 > 20 && Var2<50)
Var3 = 15;
I doubt there is any out-of-the-box tool that lets you define your own expression language (or do you have a specific language in mind?) and provides you a generic GUI for that.
精彩评论