equal
deleted
inserted
replaced
107 if (falseParen) { |
107 if (falseParen) { |
108 sb.append(')'); |
108 sb.append(')'); |
109 } |
109 } |
110 } |
110 } |
111 |
111 |
|
112 @Override |
|
113 public boolean isLocal() { |
|
114 return getTest().isLocal() |
|
115 && getTrueExpression().isLocal() |
|
116 && getFalseExpression().isLocal(); |
|
117 } |
|
118 |
112 /** |
119 /** |
113 * Get the test expression for this ternary expression, i.e. "x" in x ? y : z |
120 * Get the test expression for this ternary expression, i.e. "x" in x ? y : z |
114 * @return the test expression |
121 * @return the test expression |
115 */ |
122 */ |
116 public Expression getTest() { |
123 public Expression getTest() { |