/* Generated By:JJTree: Do not edit this line. ASTRectangle.java */

public class ASTRectangle extends SimpleNode {
  public ASTRectangle(int id) {
    super(id);
  }

  public ASTRectangle(drawphase1 p, int id) {
    super(p, id);
  }

  /*-----------------------------------------------*/
  /* Returns rectangle as four lines               */
  /*-----------------------------------------------*/
  public String getString()
  {
    String square = "{\n" + 
    formatLine(((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(3)).val,((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(1)).val)+"\n"+
    formatLine(((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(1)).val,((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(1)).val)+"\n"+
    formatLine(((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(1)).val,((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(3)).val)+"\n"+
    formatLine(((ASTInt) jjtGetChild(2)).val,((ASTInt) jjtGetChild(3)).val,((ASTInt) jjtGetChild(0)).val,((ASTInt) jjtGetChild(3)).val)+
    "\n}";

    return square; 
  }
}
