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 RepetitionClass extends ClassParts {
  protected RepeatedPart_Sandwich sandwiched;
  public RepeatedPart_Sandwich get_sandwiched() { return sandwiched; }
  public void set_sandwiched(RepeatedPart_Sandwich new_sandwiched)
    { sandwiched = new_sandwiched; }
  RepetitionClass() { super(); }
  public RepetitionClass(RepeatedPart_Sandwich sandwiched) {
    super();
    set_sandwiched(sandwiched);
  }
  public static RepetitionClass parse(java.io.InputStream in) throws ParseException
    { return new Parser(in)._RepetitionClass(); }
  public static RepetitionClass 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_) {
    super.universal_trv0_bef(_v_);
    _v_.before(this);
  }
  void universal_trv0_aft(UniversalVisitor _v_) {
    _v_.after(this);
    super.universal_trv0_aft(_v_);
  }
  void universal_trv0(UniversalVisitor _v_) {
    universal_trv0_bef(_v_);
    _v_.before_sandwiched(this, sandwiched);
    sandwiched.universal_trv0(_v_);
    _v_.after_sandwiched(this, sandwiched);
    super.universal_trv0(_v_);
    universal_trv0_aft(_v_);
  }
  void toAllSubclasses_Program_trv_bef(ClassNameTranspVisitor cntv, EdgeVisitor aev) {
    super.toAllSubclasses_Program_trv_bef(cntv, aev);
  }
  void toAllSubclasses_Program_trv_aft(ClassNameTranspVisitor cntv, EdgeVisitor aev) {
    super.toAllSubclasses_Program_trv_aft(cntv, aev);
  }
  void toAllSubclasses_Program_trv(ClassNameTranspVisitor cntv, EdgeVisitor aev) {
    toAllSubclasses_Program_trv_bef(cntv, aev);
    sandwiched.toAllSubclasses_Program_trv(cntv, aev);
    toAllSubclasses_Program_trv_aft(cntv, aev);
  }
  void checkParents_Program_trv(DummyVisitor dv) {  }
}

