< 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 




 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 


< prev index next >