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 OneClassGlob extends ClassGlobSpec {
  protected ClassGlob classglob;
  public ClassGlob get_classglob() { return classglob; }
  public void set_classglob(ClassGlob new_classglob)
    { classglob = new_classglob; }
  OneClassGlob() { super(); }
  public OneClassGlob(ClassGlob classglob) {
    super();
    set_classglob(classglob);
  }
  public static OneClassGlob parse(java.io.InputStream in) throws ParseException
    { return new Parser(in)._OneClassGlob(); }
  public static OneClassGlob parse(String s) {
    try { return parse(new java.io.ByteArrayInputStream(s.getBytes())); }
    catch (ParseException e) { throw new RuntimeException(e.toString()); }
  }

    Enumeration elements() {
      return ClassGlobSet.parse("{" + classglob + "}").elements();
    }
    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_classglob(this, classglob);
    classglob.universal_trv0(_v_);
    _v_.after_classglob(this, classglob);
    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);
    classglob.toAllSubclasses_Program_trv(cntv, aev);
    toAllSubclasses_Program_trv_aft(cntv, aev);
  }
  void checkStars_ProgramBehavior_trv_bef(DummyVisitor dv) {
    super.checkStars_ProgramBehavior_trv_bef(dv);
  }
  void checkStars_ProgramBehavior_trv_aft(DummyVisitor dv) {
    super.checkStars_ProgramBehavior_trv_aft(dv);
  }
  void checkStars_ProgramBehavior_trv(DummyVisitor dv) {
    checkStars_ProgramBehavior_trv_bef(dv);
    classglob.checkStars_ProgramBehavior_trv(dv);
    checkStars_ProgramBehavior_trv_aft(dv);
  }
  void allSources_StrategyGraph_trv_bef(GlobVisitor __v0) {
    super.allSources_StrategyGraph_trv_bef(__v0);
  }
  void allSources_StrategyGraph_trv_aft(GlobVisitor __v0) {
    super.allSources_StrategyGraph_trv_aft(__v0);
  }
  void allSources_StrategyGraph_trv(GlobVisitor __v0) {
    allSources_StrategyGraph_trv_bef(__v0);
    classglob.allSources_StrategyGraph_trv(__v0);
    allSources_StrategyGraph_trv_aft(__v0);
  }
  void allDests_StrategyGraph_trv_bef(GlobVisitor __v0) {
    super.allDests_StrategyGraph_trv_bef(__v0);
  }
  void allDests_StrategyGraph_trv_aft(GlobVisitor __v0) {
    super.allDests_StrategyGraph_trv_aft(__v0);
  }
  void allDests_StrategyGraph_trv(GlobVisitor __v0) {
    allDests_StrategyGraph_trv_bef(__v0);
    classglob.allDests_StrategyGraph_trv(__v0);
    allDests_StrategyGraph_trv_aft(__v0);
  }
  void __trav_markReachableForwardFromSources_StrategyGraph_trv_bef(__V_StrategyGraph_markReachableForwardFromSources __v0) {
    super.__trav_markReachableForwardFromSources_StrategyGraph_trv_bef(__v0);
  }
  void __trav_markReachableForwardFromSources_StrategyGraph_trv_aft(__V_StrategyGraph_markReachableForwardFromSources __v0) {
    super.__trav_markReachableForwardFromSources_StrategyGraph_trv_aft(__v0);
  }
  void __trav_markReachableForwardFromSources_StrategyGraph_trv(__V_StrategyGraph_markReachableForwardFromSources __v0) {
    __trav_markReachableForwardFromSources_StrategyGraph_trv_bef(__v0);
    classglob.__trav_markReachableForwardFromSources_StrategyGraph_trv(__v0);
    __trav_markReachableForwardFromSources_StrategyGraph_trv_aft(__v0);
  }
  void __trav_markReachableBackwardFromTargets_StrategyGraph_trv_bef(__V_StrategyGraph_markReachableBackwardFromTargets __v0) {
    super.__trav_markReachableBackwardFromTargets_StrategyGraph_trv_bef(__v0);
  }
  void __trav_markReachableBackwardFromTargets_StrategyGraph_trv_aft(__V_StrategyGraph_markReachableBackwardFromTargets __v0) {
    super.__trav_markReachableBackwardFromTargets_StrategyGraph_trv_aft(__v0);
  }
  void __trav_markReachableBackwardFromTargets_StrategyGraph_trv(__V_StrategyGraph_markReachableBackwardFromTargets __v0) {
    __trav_markReachableBackwardFromTargets_StrategyGraph_trv_bef(__v0);
    classglob.__trav_markReachableBackwardFromTargets_StrategyGraph_trv(__v0);
    __trav_markReachableBackwardFromTargets_StrategyGraph_trv_aft(__v0);
  }
  void __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_bef(__V_StrategyGraph_allSourcesAndTargetsMarked __v0) {
    super.__trav_allSourcesAndTargetsMarked_StrategyGraph_trv_bef(__v0);
  }
  void __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_aft(__V_StrategyGraph_allSourcesAndTargetsMarked __v0) {
    super.__trav_allSourcesAndTargetsMarked_StrategyGraph_trv_aft(__v0);
  }
  void __trav_allSourcesAndTargetsMarked_StrategyGraph_trv(__V_StrategyGraph_allSourcesAndTargetsMarked __v0) {
    __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_bef(__v0);
    classglob.__trav_allSourcesAndTargetsMarked_StrategyGraph_trv(__v0);
    __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_aft(__v0);
  }
  void __trav_getFirst_StrategyGraph_trv_bef(__V_StrategyGraph_getFirst __v0) {
    super.__trav_getFirst_StrategyGraph_trv_bef(__v0);
  }
  void __trav_getFirst_StrategyGraph_trv_aft(__V_StrategyGraph_getFirst __v0) {
    super.__trav_getFirst_StrategyGraph_trv_aft(__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(1);
      newnodes.and(nodes);
      if (!newnodes.equals(new java.util.BitSet()))
        classglob.__trav_getFirst_StrategyGraph_trv(newnodes, __v0); }
    __trav_getFirst_StrategyGraph_trv_aft(__v0);
  }
  void collectSource_SGEdge_trv_bef(VecVisitor vv) {
    super.collectSource_SGEdge_trv_bef(vv);
  }
  void collectSource_SGEdge_trv_aft(VecVisitor vv) {
    super.collectSource_SGEdge_trv_aft(vv);
  }
  void collectSource_SGEdge_trv(VecVisitor vv) {
    collectSource_SGEdge_trv_bef(vv);
    classglob.collectSource_SGEdge_trv(vv);
    collectSource_SGEdge_trv_aft(vv);
  }
  void collectDest_SGEdge_trv_bef(VecVisitor vv) {
    super.collectDest_SGEdge_trv_bef(vv);
  }
  void collectDest_SGEdge_trv_aft(VecVisitor vv) {
    super.collectDest_SGEdge_trv_aft(vv);
  }
  void collectDest_SGEdge_trv(VecVisitor vv) {
    collectDest_SGEdge_trv_bef(vv);
    classglob.collectDest_SGEdge_trv(vv);
    collectDest_SGEdge_trv_aft(vv);
  }
  void allClassNames_ClassGlobSpec_trv_bef(ClassGlobVisitor v) {
    super.allClassNames_ClassGlobSpec_trv_bef(v);
  }
  void allClassNames_ClassGlobSpec_trv_aft(ClassGlobVisitor v) {
    super.allClassNames_ClassGlobSpec_trv_aft(v);
  }
  void allClassNames_ClassGlobSpec_trv(ClassGlobVisitor v) {
    allClassNames_ClassGlobSpec_trv_bef(v);
    classglob.allClassNames_ClassGlobSpec_trv(v);
    allClassNames_ClassGlobSpec_trv_aft(v);
  }
  void allGlobs_ClassGlobSpec_trv_bef(GlobVisitor v) {
    super.allGlobs_ClassGlobSpec_trv_bef(v);
  }
  void allGlobs_ClassGlobSpec_trv_aft(GlobVisitor v) {
    super.allGlobs_ClassGlobSpec_trv_aft(v);
  }
  void allGlobs_ClassGlobSpec_trv(GlobVisitor v) {
    allGlobs_ClassGlobSpec_trv_bef(v);
    classglob.allGlobs_ClassGlobSpec_trv(v);
    allGlobs_ClassGlobSpec_trv_aft(v);
  }
}

