// ** This class was generated with DemFGen (vers:02/27/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(Some _h_, String just){ return "Some("+just+")"; } public String combine(None _h_){ return "None("+")"; } public String combine(Start _h_, String sample){ return "Start("+sample+")"; } public String combine(Main _h_){ return "Main("+")"; } public String combine(PaperBoy _h_, String customer, String payment){ return "PaperBoy("+customer+","+payment+")"; } public String combine(Apartment _h_, String kitchen, String bedrooms, String bathroom){ return "Apartment("+kitchen+","+bedrooms+","+bathroom+")"; } public String combine(Kitchen _h_, String kitchenCabinet){ return "Kitchen("+kitchenCabinet+")"; } public String combine(KitchenCabinet _h_, String m){ return "KitchenCabinet("+m+")"; } public String combine(Bedroom _h_, String mattress){ return "Bedroom("+mattress+")"; } public String combine(Bedrooms _h_, String parents, String children){ return "Bedrooms("+parents+","+children+")"; } public String combine(Mattress _h_, String m){ return "Mattress("+m+")"; } public String combine(Bathroom _h_){ return "Bathroom("+")"; } public String combine(Customer _h_, String wallet, String apartment){ return "Customer("+wallet+","+apartment+")"; } public String combine(Wallet _h_, String m){ return "Wallet("+m+")"; } public String combine(Money _h_, String v){ return "Money("+v+")"; } }