1 46 package org.codehaus.groovy.ast.stmt; 47 48 import org.codehaus.groovy.ast.GroovyCodeVisitor; 49 50 51 57 public class BreakStatement extends Statement { 58 59 private String label; 60 61 public BreakStatement() { 62 this(null); 63 } 64 65 public BreakStatement(String label) { 66 this.label = label; 67 } 68 69 public String getLabel() { 70 return label; 71 } 72 73 public void visit(GroovyCodeVisitor visitor) { 74 visitor.visitBreakStatement(this); 75 } 76 } 77 | Popular Tags |