// ** This class was generated with DemFGen (vers:02/11/2009) package gen; import edu.neu.ccs.demeterf.control.Fields; import edu.neu.ccs.demeterf.demfgen.lib.ident; import edu.neu.ccs.demeterf.demfgen.lib.verbatim; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Computes a simple String representation */ public class ToStr extends edu.neu.ccs.demeterf.ID{ /** Static stub method for calling toStr */ public static String ToStrM(Object o){ return new edu.neu.ccs.demeterf.Traversal(new ToStr(),edu.neu.ccs.demeterf.Control.builtins()).traverse(o); } public String combine(byte o){ return ""+o; } public String combine(short o){ return ""+o; } public String combine(int o){ return ""+o; } public String combine(long o){ return ""+o; } public String combine(float o){ return ""+o; } public String combine(double o){ return ""+o; } public String combine(char o){ return ""+o; } public String combine(boolean o){ return ""+o; } public String combine(String o){ return "\""+o+"\""; } public String combine(ident o){ return ""+o; } public String combine(verbatim o){ return ""+o; } public String combine(Cons _h_, String first, String rest){ return "Cons("+first+","+rest+")"; } public String combine(Empty _h_){ return "Empty("+")"; } public String combine(Start _h_, String moves){ return "Start("+moves+")"; } public String combine(Regular _h_, String whoOffers, String offers, String whoBuys, String buys, String whoDelivers, String rawmaterials, String whoFinishes, String finished){ return "Regular("+whoOffers+","+offers+","+whoBuys+","+buys+","+whoDelivers+","+rawmaterials+","+whoFinishes+","+finished+")"; } public String combine(Reoffer _h_, String whoOffers, String offers, String whoReoffers, String reoffers){ return "Reoffer("+whoOffers+","+offers+","+whoReoffers+","+reoffers+")"; } public String combine(SymmetricMegaMove _h_, String m1, String m2){ return "SymmetricMegaMove("+m1+","+m2+")"; } public String combine(White _h_){ return "White("+")"; } public String combine(Black _h_){ return "Black("+")"; } public String combine(Derivative _h_, String n){ return "Derivative("+n+")"; } public String combine(RawMaterial _h_, String forD, String n){ return "RawMaterial("+forD+","+n+")"; } public String combine(FinishedProduct _h_, String forR, String n){ return "FinishedProduct("+forR+","+n+")"; } public String combine(DerivativeName _h_, String v){ return "DerivativeName("+v+")"; } public String combine(RawMaterialName _h_, String v){ return "RawMaterialName("+v+")"; } public String combine(FinishedProductName _h_, String v){ return "FinishedProductName("+v+")"; } public String combine(Main _h_){ return "Main("+")"; } }