// ** This class was generated with DemFGen (vers:01/05/2008) 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.*; public class ToStr extends edu.neu.ccs.demeterf.ID{ public static String ToStrM(Object o){ return new edu.neu.ccs.demeterf.Traversal(new ToStr(),edu.neu.ccs.demeterf.Control.builtins()).traverse(o); } String combine(byte o){ return ""+o; } String combine(short o){ return ""+o; } String combine(int o){ return ""+o; } String combine(long o){ return ""+o; } String combine(float o){ return ""+o; } String combine(double o){ return ""+o; } String combine(char o){ return ""+o; } String combine(boolean o){ return ""+o; } String combine(String o){ return "\""+o+"\""; } String combine(ident o){ return ""+o; } String combine(verbatim o){ return ""+o; } String combine(Cons _h_, String first, String rest){ return "Cons("+first+","+rest+")"; } String combine(Empty _h_){ return "Empty("+")"; } String combine(Start _h_, String moves){ return "Start("+moves+")"; } String combine(MegaMove _h_, String whoOffers, String offers, String whoBuys, String buys, String whoDelivers, String rawmaterials, String whoFinishes, String finished){ return "MegaMove("+whoOffers+","+offers+","+whoBuys+","+buys+","+whoDelivers+","+rawmaterials+","+whoFinishes+","+finished+")"; } String combine(SymmetricMegaMove _h_, String m1, String m2){ return "SymmetricMegaMove("+m1+","+m2+")"; } String combine(White _h_){ return "White("+")"; } String combine(Black _h_){ return "Black("+")"; } String combine(Derivative _h_, String n){ return "Derivative("+n+")"; } String combine(RawMaterial _h_, String for, String n){ return "RawMaterial("+for+","+n+")"; } String combine(FinishedProduct _h_, String for, String n){ return "FinishedProduct("+for+","+n+")"; } String combine(DerivativeName _h_, String v){ return "DerivativeName("+v+")"; } String combine(RawMaterialName _h_, String v){ return "RawMaterialName("+v+")"; } String combine(FinishedProductName _h_, String v){ return "FinishedProductName("+v+")"; } String combine(Main _h_){ return "Main("+")"; } }