< prev index next >

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

Print this page
rev 51258 : imported patch switch


 159         scan(tree.step);
 160         scan(tree.body);
 161     }
 162 
 163     public void visitForeachLoop(JCEnhancedForLoop tree) {
 164         scan(tree.var);
 165         scan(tree.expr);
 166         scan(tree.body);
 167     }
 168 
 169     public void visitLabelled(JCLabeledStatement tree) {
 170         scan(tree.body);
 171     }
 172 
 173     public void visitSwitch(JCSwitch tree) {
 174         scan(tree.selector);
 175         scan(tree.cases);
 176     }
 177 
 178     public void visitCase(JCCase tree) {
 179         scan(tree.pat);
 180         scan(tree.stats);
 181     }
 182 





 183     public void visitSynchronized(JCSynchronized tree) {
 184         scan(tree.lock);
 185         scan(tree.body);
 186     }
 187 
 188     public void visitTry(JCTry tree) {
 189         scan(tree.resources);
 190         scan(tree.body);
 191         scan(tree.catchers);
 192         scan(tree.finalizer);
 193     }
 194 
 195     public void visitCatch(JCCatch tree) {
 196         scan(tree.param);
 197         scan(tree.body);
 198     }
 199 
 200     public void visitConditional(JCConditional tree) {
 201         scan(tree.cond);
 202         scan(tree.truepart);
 203         scan(tree.falsepart);
 204     }
 205 
 206     public void visitIf(JCIf tree) {
 207         scan(tree.cond);
 208         scan(tree.thenpart);
 209         scan(tree.elsepart);
 210     }
 211 
 212     public void visitExec(JCExpressionStatement tree) {
 213         scan(tree.expr);
 214     }
 215 
 216     public void visitBreak(JCBreak tree) {

 217     }
 218 
 219     public void visitContinue(JCContinue tree) {
 220     }
 221 
 222     public void visitReturn(JCReturn tree) {
 223         scan(tree.expr);
 224     }
 225 
 226     public void visitThrow(JCThrow tree) {
 227         scan(tree.expr);
 228     }
 229 
 230     public void visitAssert(JCAssert tree) {
 231         scan(tree.cond);
 232         scan(tree.detail);
 233     }
 234 
 235     public void visitApply(JCMethodInvocation tree) {
 236         scan(tree.typeargs);




 159         scan(tree.step);
 160         scan(tree.body);
 161     }
 162 
 163     public void visitForeachLoop(JCEnhancedForLoop tree) {
 164         scan(tree.var);
 165         scan(tree.expr);
 166         scan(tree.body);
 167     }
 168 
 169     public void visitLabelled(JCLabeledStatement tree) {
 170         scan(tree.body);
 171     }
 172 
 173     public void visitSwitch(JCSwitch tree) {
 174         scan(tree.selector);
 175         scan(tree.cases);
 176     }
 177 
 178     public void visitCase(JCCase tree) {
 179         scan(tree.pats);
 180         scan(tree.stats);
 181     }
 182 
 183     public void visitSwitchExpression(JCSwitchExpression tree) {
 184         scan(tree.selector);
 185         scan(tree.cases);
 186     }
 187 
 188     public void visitSynchronized(JCSynchronized tree) {
 189         scan(tree.lock);
 190         scan(tree.body);
 191     }
 192 
 193     public void visitTry(JCTry tree) {
 194         scan(tree.resources);
 195         scan(tree.body);
 196         scan(tree.catchers);
 197         scan(tree.finalizer);
 198     }
 199 
 200     public void visitCatch(JCCatch tree) {
 201         scan(tree.param);
 202         scan(tree.body);
 203     }
 204 
 205     public void visitConditional(JCConditional tree) {
 206         scan(tree.cond);
 207         scan(tree.truepart);
 208         scan(tree.falsepart);
 209     }
 210 
 211     public void visitIf(JCIf tree) {
 212         scan(tree.cond);
 213         scan(tree.thenpart);
 214         scan(tree.elsepart);
 215     }
 216 
 217     public void visitExec(JCExpressionStatement tree) {
 218         scan(tree.expr);
 219     }
 220 
 221     public void visitBreak(JCBreak tree) {
 222         scan(tree.value);
 223     }
 224 
 225     public void visitContinue(JCContinue tree) {
 226     }
 227 
 228     public void visitReturn(JCReturn tree) {
 229         scan(tree.expr);
 230     }
 231 
 232     public void visitThrow(JCThrow tree) {
 233         scan(tree.expr);
 234     }
 235 
 236     public void visitAssert(JCAssert tree) {
 237         scan(tree.cond);
 238         scan(tree.detail);
 239     }
 240 
 241     public void visitApply(JCMethodInvocation tree) {
 242         scan(tree.typeargs);


< prev index next >