package EDU.neu.ccs.demeter.tools.apstudio.graphedit;
import java.awt.*;
import java.io.*;
import java.util.*;
import EDU.neu.ccs.demeter.*;
import EDU.neu.ccs.demeter.common.tg.*;


import EDU.neu.ccs.demeter.*;
class Y {
  protected Integer y;
  public Integer get_y() { return y; }
  public void set_y(Integer new_y)
    { y = new_y; }
  Y() { super(); }
  public Y(Integer y) {
    super();
    set_y(y);
  }
  public static Y parse(java.io.InputStream in) throws ParseException
    { return new Parser(in)._Y(); }
  public static Y parse(String s) {
    try { return parse(new java.io.ByteArrayInputStream(s.getBytes())); }
    catch (ParseException e) { throw new RuntimeException(e.toString()); }
  }
  void universal_trv0_bef(UniversalVisitor _v_) {
    _v_.before(this);
  }
  void universal_trv0_aft(UniversalVisitor _v_) {
    _v_.after(this);
  }
  void universal_trv0(UniversalVisitor _v_) {
    universal_trv0_bef(_v_);
    _v_.before_y(this, y);
    _v_.after_y(this, y);
    universal_trv0_aft(_v_);
  }
  void saveGraph_UGraph_trv_bef(SaveGraphVisitor sgv) {
    sgv.before(this);
  }
  void saveGraph_UGraph_trv_aft(SaveGraphVisitor sgv) {  }
  void saveGraph_UGraph_trv(SaveGraphVisitor sgv) {
    saveGraph_UGraph_trv_bef(sgv);
    saveGraph_UGraph_trv_aft(sgv);
  }
  void saveMarkedGraph_UGraph_trv_bef(SelectMarkedVisitor v) {  }
  void saveMarkedGraph_UGraph_trv_aft(SelectMarkedVisitor v) {  }
  void saveMarkedGraph_UGraph_trv_aro_Y(SelectMarkedVisitor v) {  }
  static java.lang.reflect.Method saveMarkedGraph_UGraph_trv_aro_Y;
  static {
    try {
      saveMarkedGraph_UGraph_trv_aro_Y =
        Y.class.getDeclaredMethod("saveMarkedGraph_UGraph_trv_aro_Y",
          new Class[] { SelectMarkedVisitor.class });
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e.toString());
    }
  }
  void saveMarkedGraph_UGraph_trv(SelectMarkedVisitor v) {
    saveMarkedGraph_UGraph_trv_bef(v);
    v.around(new __Subtraversal(saveMarkedGraph_UGraph_trv_aro_Y, this, new Object[] { v }), this);
    saveMarkedGraph_UGraph_trv_aft(v);
  }
  void toallCdString_UVertex_trv_bef(cdStringVisitor __v0) {  }
  void toallCdString_UVertex_trv_aft(cdStringVisitor __v0) {  }
  void toallCdString_UVertex_trv(cdStringVisitor __v0) {
    toallCdString_UVertex_trv_bef(__v0);
    toallCdString_UVertex_trv_aft(__v0);
  }
}

