1 16 package com.google.gwt.dev.jjs.ast; 17 18 import com.google.gwt.dev.jjs.SourceInfo; 19 20 23 public class JLabeledStatement extends JStatement { 24 25 private JStatement body; 26 private final JLabel label; 27 28 public JLabeledStatement(JProgram program, SourceInfo info, JLabel label, 29 JStatement body) { 30 super(program, info); 31 this.label = label; 32 this.body = body; 33 } 34 35 public JStatement getBody() { 36 return body; 37 } 38 39 public JLabel getLabel() { 40 return label; 41 } 42 43 public void traverse(JVisitor visitor, Context ctx) { 44 if (visitor.visit(this, ctx)) { 45 visitor.accept(label); 46 body = visitor.accept(body); 47 } 48 visitor.endVisit(this, ctx); 49 } 50 } 51 | Popular Tags |