1 package org.python.parser.ast; 3 import org.python.parser.SimpleNode; 4 import java.io.DataOutputStream ; 5 import java.io.IOException ; 6 7 public class Break extends stmtType { 8 9 public Break() { 10 } 11 12 public Break(SimpleNode parent) { 13 this(); 14 this.beginLine = parent.beginLine; 15 this.beginColumn = parent.beginColumn; 16 } 17 18 public String toString() { 19 StringBuffer sb = new StringBuffer ("Break["); 20 sb.append("]"); 21 return sb.toString(); 22 } 23 24 public void pickle(DataOutputStream ostream) throws IOException { 25 pickleThis(26, ostream); 26 } 27 28 public Object accept(VisitorIF visitor) throws Exception { 29 return visitor.visitBreak(this); 30 } 31 32 public void traverse(VisitorIF visitor) throws Exception { 33 } 34 35 } 36 | Popular Tags |