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

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

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

  public void generate()
  {
int temp;
    System.out.println("<line x1=\"" + ((ASTInt) jjtGetChild(0)).val +
        "\" y1=\"" + ((ASTInt) jjtGetChild(1)).val +
        "\" x2=\"" + ((ASTInt) jjtGetChild(2)).val +
        "\" y2=\"" + ((ASTInt) jjtGetChild(1)).val +
        "\" stroke=\"black\" stroke-width=\"1\"/>");

temp=((ASTInt)jjtGetChild(0)).val  +  ((ASTInt)jjtGetChild(1)).val;

    System.out.println("<line x1=\"" + ((ASTInt) jjtGetChild(2)).val +
        "\" y1=\"" + ((ASTInt) jjtGetChild(1)).val +
        "\" x2=\"" + ((ASTInt) jjtGetChild(2)).val +
        "\" y2=\"" + temp +
        "\" stroke=\"black\" stroke-width=\"1\"/>");

    System.out.println("<line x1=\"" + ((ASTInt) jjtGetChild(2)).val +

        "\" y1=\"" + temp +
        "\" x2=\"" + ((ASTInt) jjtGetChild(0)).val +
        "\" y2=\"" + temp +
        "\" stroke=\"black\" stroke-width=\"1\"/>");

    System.out.println("<line x1=\"" + ((ASTInt) jjtGetChild(0)).val +
        "\" y1=\"" + temp +
        "\" x2=\"" + ((ASTInt) jjtGetChild(0)).val +
        "\" y2=\"" + ((ASTInt) jjtGetChild(1)).val +
        "\" stroke=\"black\" stroke-width=\"1\"/>");
  }



}
