public String compute(String name, Object o, int value) { String result = name + value; result = result + ".groovy" + o.toString(); return result; }Suppose that we want to edit a breakpoint for the yellow line. We could use for example one of these expressions:
value < 3 or value == 3 or value <= 3[1]
value would be a variableb1 || b2 or b1 && b2 or b1 ^ b2[2]
b1 and b2 would be variables(value + 1) < 3 or (value * 2) > 10[3]
value would be a variablename.length() == 3 or name.substring(1) == "toto" or name.substring(index) == "toto"[4]
name and index would be variablesfalse regardless of the reasons. Note that no exception will be thrown, but if you edit again the expression in the SwingDebugScriptWindow, you will see the expression in red:
Copyright 2019-2020 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence