// ** This class was generated with DemFGen (vers:02/05/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); } 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 sample){ return "Start("+sample+")"; } String combine(B _h_, String v){ return "B("+v+")"; } String combine(Literal _h_, String value, String var){ return "Literal("+value+","+var+")"; } String combine(Pos _h_){ return "Pos("+")"; } String combine(Neg _h_){ return "Neg("+")"; } String combine(Variable _h_, String v){ return "Variable("+v+")"; } String combine(Main _h_){ return "Main("+")"; } }