consistent toString functions for expressions, parentasis are added if neccessary
This commit is contained in:
@@ -15,6 +15,11 @@ public class TernaryExpression implements Expression {
|
||||
return Type.TERNARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Priority getPriority() {
|
||||
return Priority.TERNARY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "IF(" + cond + ", " + whenTrue + ", " + whenFalse + ")";
|
||||
|
||||
Reference in New Issue
Block a user