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_SGEdge_SList {
  protected SGEdge it;
  public SGEdge get_it() { return it; }
  public void set_it(SGEdge new_it)
    { it = new_it; }
  protected Nonempty_SGEdge_SList next;
  public Nonempty_SGEdge_SList get_next() { return next; }
  public void set_next(Nonempty_SGEdge_SList new_next)
    { next = new_next; }
  Nonempty_SGEdge_SList() { super(); }
  public Nonempty_SGEdge_SList(SGEdge it, Nonempty_SGEdge_SList next) {
    super();
    set_it(it);
    set_next(next);
  }
  public static Nonempty_SGEdge_SList parse(java.io.InputStream in) throws ParseException
    { return new Parser(in)._Nonempty_SGEdge_SList(); }
  public static Nonempty_SGEdge_SList 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 toAllSubclasses_Program_trv_bef(ClassNameTranspVisitor cntv, EdgeVisitor aev) {  }
  void toAllSubclasses_Program_trv_aft(ClassNameTranspVisitor cntv, EdgeVisitor aev) {  }
  void toAllSubclasses_Program_trv(ClassNameTranspVisitor cntv, EdgeVisitor aev) {
    toAllSubclasses_Program_trv_bef(cntv, aev);
    it.toAllSubclasses_Program_trv(cntv, aev);
    if (next != null) {
    next.toAllSubclasses_Program_trv(cntv, aev);
    }
    toAllSubclasses_Program_trv_aft(cntv, aev);
  }
  void checkStars_ProgramBehavior_trv_bef(DummyVisitor dv) {  }
  void checkStars_ProgramBehavior_trv_aft(DummyVisitor dv) {  }
  void checkStars_ProgramBehavior_trv(DummyVisitor dv) {
    checkStars_ProgramBehavior_trv_bef(dv);
    it.checkStars_ProgramBehavior_trv(dv);
    if (next != null) {
    next.checkStars_ProgramBehavior_trv(dv);
    }
    checkStars_ProgramBehavior_trv_aft(dv);
  }
  void allSources_StrategyGraph_trv_bef(GlobVisitor __v0) {  }
  void allSources_StrategyGraph_trv_aft(GlobVisitor __v0) {  }
  void allSources_StrategyGraph_trv(GlobVisitor __v0) {
    allSources_StrategyGraph_trv_bef(__v0);
    it.allSources_StrategyGraph_trv(__v0);
    if (next != null) {
    next.allSources_StrategyGraph_trv(__v0);
    }
    allSources_StrategyGraph_trv_aft(__v0);
  }
  void allDests_StrategyGraph_trv_bef(GlobVisitor __v0) {  }
  void allDests_StrategyGraph_trv_aft(GlobVisitor __v0) {  }
  void allDests_StrategyGraph_trv(GlobVisitor __v0) {
    allDests_StrategyGraph_trv_bef(__v0);
    it.allDests_StrategyGraph_trv(__v0);
    if (next != null) {
    next.allDests_StrategyGraph_trv(__v0);
    }
    allDests_StrategyGraph_trv_aft(__v0);
  }
  void __trav_getFirst_StrategyGraph_trv_bef(__V_StrategyGraph_getFirst __v0) {  }
  void __trav_getFirst_StrategyGraph_trv_aft(__V_StrategyGraph_getFirst __v0) {  }
  void __trav_getFirst_StrategyGraph_trv(java.util.BitSet nodes, __V_StrategyGraph_getFirst __v0) {
    __trav_getFirst_StrategyGraph_trv_bef(__v0);
    { java.util.BitSet newnodes = new java.util.BitSet();
      newnodes.set(0);
      newnodes.and(nodes);
      if (!newnodes.equals(new java.util.BitSet()))
        it.__trav_getFirst_StrategyGraph_trv(newnodes, __v0); }
    if (next != null) {
    { java.util.BitSet newnodes = new java.util.BitSet();
      newnodes.set(0);
      newnodes.and(nodes);
      if (!newnodes.equals(new java.util.BitSet()))
        next.__trav_getFirst_StrategyGraph_trv(newnodes, __v0); }
    }
    __trav_getFirst_StrategyGraph_trv_aft(__v0);
  }
}

