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 Nonempty_ScopeIdentifier_List {
  protected ScopeIdentifier it;
  public ScopeIdentifier get_it() { return it; }
  public void set_it(ScopeIdentifier new_it)
    { it = new_it; }
  protected Nonempty_ScopeIdentifier_List next;
  public Nonempty_ScopeIdentifier_List get_next() { return next; }
  public void set_next(Nonempty_ScopeIdentifier_List new_next)
    { next = new_next; }
  Nonempty_ScopeIdentifier_List() { super(); }
  public Nonempty_ScopeIdentifier_List(ScopeIdentifier it, Nonempty_ScopeIdentifier_List next) {
    super();
    set_it(it);
    set_next(next);
  }
  public static Nonempty_ScopeIdentifier_List parse(java.io.InputStream in) throws ParseException
    { return new Parser(in)._Nonempty_ScopeIdentifier_List(); }
  public static Nonempty_ScopeIdentifier_List 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_it(this, it);
    it.universal_trv0(_v_);
    _v_.after_it(this, it);
    if (next != null) {
      _v_.before_next(this, next);
    next.universal_trv0(_v_);
      _v_.after_next(this, next);
    }
    universal_trv0_aft(_v_);
  }
  void saveGraph_UGraph_trv_bef(SaveGraphVisitor sgv) {  }
  void saveGraph_UGraph_trv_aft(SaveGraphVisitor sgv) {  }
  void saveGraph_UGraph_trv(SaveGraphVisitor sgv) {
    saveGraph_UGraph_trv_bef(sgv);
    it.saveGraph_UGraph_trv(sgv);
    if (next != null) {
    next.saveGraph_UGraph_trv(sgv);
    }
    saveGraph_UGraph_trv_aft(sgv);
  }
  void saveMarkedGraph_UGraph_trv_bef(SelectMarkedVisitor v) {  }
  void saveMarkedGraph_UGraph_trv_aft(SelectMarkedVisitor v) {  }
  void saveMarkedGraph_UGraph_trv(SelectMarkedVisitor v) {
    saveMarkedGraph_UGraph_trv_bef(v);
    it.saveMarkedGraph_UGraph_trv(v);
    if (next != null) {
    next.saveMarkedGraph_UGraph_trv(v);
    }
    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);
    it.toallCdString_UVertex_trv(__v0);
    if (next != null) {
    next.toallCdString_UVertex_trv(__v0);
    }
    toallCdString_UVertex_trv_aft(__v0);
  }
}

