252
253 public JCSwitch Switch(JCExpression selector, List<JCCase> cases) {
254 JCSwitch tree = new JCSwitch(selector, cases);
255 tree.pos = pos;
256 return tree;
257 }
258
259 public JCCase Case(JCExpression pat, List<JCStatement> stats) {
260 JCCase tree = new JCCase(pat, stats);
261 tree.pos = pos;
262 return tree;
263 }
264
265 public JCSynchronized Synchronized(JCExpression lock, JCBlock body) {
266 JCSynchronized tree = new JCSynchronized(lock, body);
267 tree.pos = pos;
268 return tree;
269 }
270
271 public JCTry Try(JCBlock body, List<JCCatch> catchers, JCBlock finalizer) {
272 JCTry tree = new JCTry(body, catchers, finalizer);
273 tree.pos = pos;
274 return tree;
275 }
276
277 public JCCatch Catch(JCVariableDecl param, JCBlock body) {
278 JCCatch tree = new JCCatch(param, body);
279 tree.pos = pos;
280 return tree;
281 }
282
283 public JCConditional Conditional(JCExpression cond,
284 JCExpression thenpart,
285 JCExpression elsepart)
286 {
287 JCConditional tree = new JCConditional(cond, thenpart, elsepart);
288 tree.pos = pos;
289 return tree;
290 }
291
292 public JCIf If(JCExpression cond, JCStatement thenpart, JCStatement elsepart) {
|
252
253 public JCSwitch Switch(JCExpression selector, List<JCCase> cases) {
254 JCSwitch tree = new JCSwitch(selector, cases);
255 tree.pos = pos;
256 return tree;
257 }
258
259 public JCCase Case(JCExpression pat, List<JCStatement> stats) {
260 JCCase tree = new JCCase(pat, stats);
261 tree.pos = pos;
262 return tree;
263 }
264
265 public JCSynchronized Synchronized(JCExpression lock, JCBlock body) {
266 JCSynchronized tree = new JCSynchronized(lock, body);
267 tree.pos = pos;
268 return tree;
269 }
270
271 public JCTry Try(JCBlock body, List<JCCatch> catchers, JCBlock finalizer) {
272 return Try(body, catchers, finalizer, List.<JCTree>nil());
273 }
274
275 public JCTry Try(JCBlock body,
276 List<JCCatch> catchers,
277 JCBlock finalizer,
278 List<JCTree> resources) {
279 JCTry tree = new JCTry(body, catchers, finalizer, resources);
280 tree.pos = pos;
281 return tree;
282 }
283
284 public JCCatch Catch(JCVariableDecl param, JCBlock body) {
285 JCCatch tree = new JCCatch(param, body);
286 tree.pos = pos;
287 return tree;
288 }
289
290 public JCConditional Conditional(JCExpression cond,
291 JCExpression thenpart,
292 JCExpression elsepart)
293 {
294 JCConditional tree = new JCConditional(cond, thenpart, elsepart);
295 tree.pos = pos;
296 return tree;
297 }
298
299 public JCIf If(JCExpression cond, JCStatement thenpart, JCStatement elsepart) {
|