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 ClassName implements ClassNameI, Cloneable { protected Name name; public Name get_name() { return name; } public void set_name(Name new_name) { name = new_name; } ClassName() { super(); } public ClassName(Name name) { super(); set_name(name); } public static ClassName parse(java.io.InputStream in) throws ParseException { return new Parser(in)._ClassName(); } public static ClassName parse(String s) { try { return parse(new java.io.ByteArrayInputStream(s.getBytes())); } catch (ParseException e) { throw new RuntimeException(e.toString()); } } public boolean equals(Object cn) { return this.toString().equals(cn.toString()); } public int hashCode() { return this.toString().hashCode(); } public ClassName(Ident iname){ name = Name.parse(iname.toString()); } public String toString() { return this.get_name().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_name(this, name); name.universal_trv0(_v_); _v_.after_name(this, name); 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); toAllSubclasses_Program_trv_aft(cntv, aev); } void toClassName_ClassDef_trv_bef(ClassNameAccessor v) { } void toClassName_ClassDef_trv_aft(ClassNameAccessor v) { } void toClassName_ClassDef_trv(ClassNameAccessor v) { toClassName_ClassDef_trv_bef(v); toClassName_ClassDef_trv_aft(v); } void toClassName_Part_trv_bef(ClassNameAccessor v) { } void toClassName_Part_trv_aft(ClassNameAccessor v) { } void toClassName_Part_trv(ClassNameAccessor v) { toClassName_Part_trv_bef(v); toClassName_Part_trv_aft(v); } void toClassName_Superclass_trv_bef(ClassNameAccessor v) { } void toClassName_Superclass_trv_aft(ClassNameAccessor v) { } void toClassName_Superclass_trv(ClassNameAccessor v) { toClassName_Superclass_trv_bef(v); toClassName_Superclass_trv_aft(v); } void toClassName_Subclass_trv_bef(ClassNameAccessor v) { } void toClassName_Subclass_trv_aft(ClassNameAccessor v) { } void toClassName_Subclass_trv(ClassNameAccessor v) { toClassName_Subclass_trv_bef(v); toClassName_Subclass_trv_aft(v); } void toClassName_RepeatedPart_trv_bef(ClassNameAccessor v) { } void toClassName_RepeatedPart_trv_aft(ClassNameAccessor v) { } void toClassName_RepeatedPart_trv(ClassNameAccessor v) { toClassName_RepeatedPart_trv_bef(v); toClassName_RepeatedPart_trv_aft(v); } void __trav_markReachableForwardFromSources_StrategyGraph_trv_bef(__V_StrategyGraph_markReachableForwardFromSources __v0) { __v0.before(this); } void __trav_markReachableForwardFromSources_StrategyGraph_trv_aft(__V_StrategyGraph_markReachableForwardFromSources __v0) { } void __trav_markReachableForwardFromSources_StrategyGraph_trv(__V_StrategyGraph_markReachableForwardFromSources __v0) { __trav_markReachableForwardFromSources_StrategyGraph_trv_bef(__v0); __trav_markReachableForwardFromSources_StrategyGraph_trv_aft(__v0); } void __trav_markReachableBackwardFromTargets_StrategyGraph_trv_bef(__V_StrategyGraph_markReachableBackwardFromTargets __v0) { __v0.before(this); } void __trav_markReachableBackwardFromTargets_StrategyGraph_trv_aft(__V_StrategyGraph_markReachableBackwardFromTargets __v0) { } void __trav_markReachableBackwardFromTargets_StrategyGraph_trv(__V_StrategyGraph_markReachableBackwardFromTargets __v0) { __trav_markReachableBackwardFromTargets_StrategyGraph_trv_bef(__v0); __trav_markReachableBackwardFromTargets_StrategyGraph_trv_aft(__v0); } void __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_bef(__V_StrategyGraph_allSourcesAndTargetsMarked __v0) { __v0.before(this); } void __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_aft(__V_StrategyGraph_allSourcesAndTargetsMarked __v0) { } void __trav_allSourcesAndTargetsMarked_StrategyGraph_trv(__V_StrategyGraph_allSourcesAndTargetsMarked __v0) { __trav_allSourcesAndTargetsMarked_StrategyGraph_trv_bef(__v0); __trav_allSourcesAndTargetsMarked_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_aro_ClassName(java.util.BitSet nodes, __V_StrategyGraph_getFirst __v0) { } static java.lang.reflect.Method __trav_getFirst_StrategyGraph_trv_aro_ClassName; static { try { __trav_getFirst_StrategyGraph_trv_aro_ClassName = ClassName.class.getDeclaredMethod("__trav_getFirst_StrategyGraph_trv_aro_ClassName", new Class[] { java.util.BitSet.class, __V_StrategyGraph_getFirst.class }); } catch (NoSuchMethodException e) { throw new RuntimeException(e.toString()); } } void __trav_getFirst_StrategyGraph_trv(java.util.BitSet nodes, __V_StrategyGraph_getFirst __v0) { __trav_getFirst_StrategyGraph_trv_bef(__v0); __v0.around(new __Subtraversal(__trav_getFirst_StrategyGraph_trv_aro_ClassName, this, new Object[] { nodes, __v0 }), this); __trav_getFirst_StrategyGraph_trv_aft(__v0); } void collectSource_SGEdge_trv_bef(VecVisitor vv) { vv.before(this); } void collectSource_SGEdge_trv_aft(VecVisitor vv) { } void collectSource_SGEdge_trv(VecVisitor vv) { collectSource_SGEdge_trv_bef(vv); collectSource_SGEdge_trv_aft(vv); } void collectDest_SGEdge_trv_bef(VecVisitor vv) { vv.before(this); } void collectDest_SGEdge_trv_aft(VecVisitor vv) { } void collectDest_SGEdge_trv(VecVisitor vv) { collectDest_SGEdge_trv_bef(vv); collectDest_SGEdge_trv_aft(vv); } void collectBypassVs_SGEdge_trv_bef(VecVisitor vv) { vv.before(this); } void collectBypassVs_SGEdge_trv_aft(VecVisitor vv) { } void collectBypassVs_SGEdge_trv(VecVisitor vv) { collectBypassVs_SGEdge_trv_bef(vv); collectBypassVs_SGEdge_trv_aft(vv); } void collectOnlyThruVs_SGEdge_trv_bef(VecVisitor vv) { vv.before(this); } void collectOnlyThruVs_SGEdge_trv_aft(VecVisitor vv) { } void collectOnlyThruVs_SGEdge_trv(VecVisitor vv) { collectOnlyThruVs_SGEdge_trv_bef(vv); collectOnlyThruVs_SGEdge_trv_aft(vv); } void getSourceName_PartGlob_trv_bef(StringVisitor sv) { sv.before(this); } void getSourceName_PartGlob_trv_aft(StringVisitor sv) { } void getSourceName_PartGlob_trv(StringVisitor sv) { getSourceName_PartGlob_trv_bef(sv); getSourceName_PartGlob_trv_aft(sv); } void getDestName_PartGlob_trv_bef(StringVisitor sv) { sv.before(this); } void getDestName_PartGlob_trv_aft(StringVisitor sv) { } void getDestName_PartGlob_trv(StringVisitor sv) { getDestName_PartGlob_trv_bef(sv); getDestName_PartGlob_trv_aft(sv); } void getSourceName_SubclassGlob_trv_bef(StringVisitor sv) { sv.before(this); } void getSourceName_SubclassGlob_trv_aft(StringVisitor sv) { } void getSourceName_SubclassGlob_trv(StringVisitor sv) { getSourceName_SubclassGlob_trv_bef(sv); getSourceName_SubclassGlob_trv_aft(sv); } void getDestName_SubclassGlob_trv_bef(StringVisitor sv) { sv.before(this); } void getDestName_SubclassGlob_trv_aft(StringVisitor sv) { } void getDestName_SubclassGlob_trv(StringVisitor sv) { getDestName_SubclassGlob_trv_bef(sv); getDestName_SubclassGlob_trv_aft(sv); } void allClassNames_ClassGlobSpec_trv_bef(ClassGlobVisitor v) { v.before(this); } void allClassNames_ClassGlobSpec_trv_aft(ClassGlobVisitor v) { } void allClassNames_ClassGlobSpec_trv(ClassGlobVisitor v) { allClassNames_ClassGlobSpec_trv_bef(v); allClassNames_ClassGlobSpec_trv_aft(v); } void toClassName_EdgeVisitor_trv_bef(ClassNameRetVisitor cnrv) { cnrv.before(this); } void toClassName_EdgeVisitor_trv_aft(ClassNameRetVisitor cnrv) { } void toClassName_EdgeVisitor_trv(ClassNameRetVisitor cnrv) { toClassName_EdgeVisitor_trv_bef(cnrv); toClassName_EdgeVisitor_trv_aft(cnrv); } }