You cannot put any code, you can only express expressions. So you can put:
new Something(someParameter)somebool.booleanValue == true ? new Something() : new OtherThing();
but you can not use the if, for, switch, declare methods or classes.
Bozho source
share