< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/tree/TreeTranslator.java

Print this page

163         result = tree;
164     }
165 
166     public void visitBlock(JCBlock tree) {
167         tree.stats = translate(tree.stats);
168         result = tree;
169     }
170 
171     public void visitDoLoop(JCDoWhileLoop tree) {
172         tree.body = translate(tree.body);
173         tree.cond = translate(tree.cond);
174         result = tree;
175     }
176 
177     public void visitWhileLoop(JCWhileLoop tree) {
178         tree.cond = translate(tree.cond);
179         tree.body = translate(tree.body);
180         result = tree;
181     }
182 






183     public void visitForLoop(JCForLoop tree) {
184         tree.init = translate(tree.init);
185         tree.cond = translate(tree.cond);
186         tree.step = translate(tree.step);
187         tree.body = translate(tree.body);
188         result = tree;
189     }
190 
191     public void visitForeachLoop(JCEnhancedForLoop tree) {
192         tree.var = translate(tree.var);
193         tree.expr = translate(tree.expr);
194         tree.body = translate(tree.body);
195         result = tree;
196     }
197 
198     public void visitLabelled(JCLabeledStatement tree) {
199         tree.body = translate(tree.body);
200         result = tree;
201     }
202 

375     }
376 
377     @Override
378     public void visitGuardPattern(JCGuardPattern tree) {
379         tree.patt = translate(tree.patt);
380         tree.expr = translate(tree.expr);
381         result = tree;
382     }
383 
384     public void visitIndexed(JCArrayAccess tree) {
385         tree.indexed = translate(tree.indexed);
386         tree.index = translate(tree.index);
387         result = tree;
388     }
389 
390     public void visitSelect(JCFieldAccess tree) {
391         tree.selected = translate(tree.selected);
392         result = tree;
393     }
394 





395     public void visitReference(JCMemberReference tree) {
396         tree.expr = translate(tree.expr);
397         result = tree;
398     }
399 
400     public void visitIdent(JCIdent tree) {
401         result = tree;
402     }
403 
404     public void visitLiteral(JCLiteral tree) {
405         result = tree;
406     }
407 
408     public void visitTypeIdent(JCPrimitiveTypeTree tree) {
409         result = tree;
410     }
411 
412     public void visitTypeArray(JCArrayTypeTree tree) {
413         tree.elemtype = translate(tree.elemtype);
414         result = tree;

163         result = tree;
164     }
165 
166     public void visitBlock(JCBlock tree) {
167         tree.stats = translate(tree.stats);
168         result = tree;
169     }
170 
171     public void visitDoLoop(JCDoWhileLoop tree) {
172         tree.body = translate(tree.body);
173         tree.cond = translate(tree.cond);
174         result = tree;
175     }
176 
177     public void visitWhileLoop(JCWhileLoop tree) {
178         tree.cond = translate(tree.cond);
179         tree.body = translate(tree.body);
180         result = tree;
181     }
182 
183     public void visitWithField(JCWithField tree) {
184         tree.field = translate(tree.field);
185         tree.value = translate(tree.value);
186         result = tree;
187     }
188 
189     public void visitForLoop(JCForLoop tree) {
190         tree.init = translate(tree.init);
191         tree.cond = translate(tree.cond);
192         tree.step = translate(tree.step);
193         tree.body = translate(tree.body);
194         result = tree;
195     }
196 
197     public void visitForeachLoop(JCEnhancedForLoop tree) {
198         tree.var = translate(tree.var);
199         tree.expr = translate(tree.expr);
200         tree.body = translate(tree.body);
201         result = tree;
202     }
203 
204     public void visitLabelled(JCLabeledStatement tree) {
205         tree.body = translate(tree.body);
206         result = tree;
207     }
208 

381     }
382 
383     @Override
384     public void visitGuardPattern(JCGuardPattern tree) {
385         tree.patt = translate(tree.patt);
386         tree.expr = translate(tree.expr);
387         result = tree;
388     }
389 
390     public void visitIndexed(JCArrayAccess tree) {
391         tree.indexed = translate(tree.indexed);
392         tree.index = translate(tree.index);
393         result = tree;
394     }
395 
396     public void visitSelect(JCFieldAccess tree) {
397         tree.selected = translate(tree.selected);
398         result = tree;
399     }
400 
401     public void visitDefaultValue(JCDefaultValue tree) {
402         tree.clazz = translate(tree.clazz);
403         result = tree;
404     }
405 
406     public void visitReference(JCMemberReference tree) {
407         tree.expr = translate(tree.expr);
408         result = tree;
409     }
410 
411     public void visitIdent(JCIdent tree) {
412         result = tree;
413     }
414 
415     public void visitLiteral(JCLiteral tree) {
416         result = tree;
417     }
418 
419     public void visitTypeIdent(JCPrimitiveTypeTree tree) {
420         result = tree;
421     }
422 
423     public void visitTypeArray(JCArrayTypeTree tree) {
424         tree.elemtype = translate(tree.elemtype);
425         result = tree;
< prev index next >