1 package polyglot.ast; 2 3 /** 4 * Am immutable representation of a Java statement with a label. A labeled 5 * statement contains the statement being labeled and a string label. 6 */ 7 public interface Labeled extends CompoundStmt 8 { 9 /** The label. */ 10 String label(); 11 /** Set the label. */ 12 Labeled label(String label); 13 14 /** The statement to label. */ 15 Stmt statement(); 16 /** Set the statement to label. */ 17 Labeled statement(Stmt statement); 18 } 19