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_PathSegment_List {
  protected PathSegment it;
  public PathSegment get_it() { return it; }
  public void set_it(PathSegment new_it)
    { it = new_it; }
  protected Nonempty_PathSegment_List next;
  public Nonempty_PathSegment_List get_next() { return next; }
  public void set_next(Nonempty_PathSegment_List new_next)
    { next = new_next; }
  Nonempty_PathSegment_List() { super(); }
  public Nonempty_PathSegment_List(PathSegment it, Nonempty_PathSegment_List next) {
    super();
    set_it(it);
    set_next(next);
  }
  public static Nonempty_PathSegment_List parse(java.io.InputStream in) throws ParseException
    { return new Parser(in)._Nonempty_PathSegment_List(); }
  public static Nonempty_PathSegment_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 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 __trav_toGraph_PathDirective_trv_bef(__V_PathDirective_toGraph __v0) {  }
  void __trav_toGraph_PathDirective_trv_aft(__V_PathDirective_toGraph __v0) {  }
  void __trav_toGraph_PathDirective_trv(__V_PathDirective_toGraph __v0) {
    __trav_toGraph_PathDirective_trv_bef(__v0);
    it.__trav_toGraph_PathDirective_trv(__v0);
    if (next != null) {
    next.__trav_toGraph_PathDirective_trv(__v0);
    }
    __trav_toGraph_PathDirective_trv_aft(__v0);
  }
}

