added support for long, float and double
This commit is contained in:
@@ -17,8 +17,6 @@ public class TernaryExpression implements Expression {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return cond
|
||||
+ " ? " + (!(whenTrue instanceof ConstantExpression) ? "(" + whenTrue + ")" : whenTrue)
|
||||
+ " : " + (!(whenFalse instanceof ConstantExpression) ? "(" + whenFalse + ")" : whenFalse);
|
||||
return "IF(" + cond + ", " + whenTrue + ", " + whenFalse + ")";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user