// ** 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 Display extends edu.neu.ccs.demeterf.ID{ /** Static stub method for calling display */ public static String DisplayM(Object o){ return new edu.neu.ccs.demeterf.Traversal(new Display(),edu.neu.ccs.demeterf.Control.builtins()).traverse(o," "); } public String combine(byte o){ return ": byte \""+o+"\""; } public String combine(short o){ return ": short \""+o+"\""; } public String combine(int o){ return ": int \""+o+"\""; } public String combine(long o){ return ": long \""+o+"\""; } public String combine(float o){ return ": float \""+o+"\""; } public String combine(double o){ return ": double \""+o+"\""; } public String combine(char o){ return ": char \""+o+"\""; } public String combine(boolean o){ return ": boolean \""+o+"\""; } public String combine(String o){ return ": String \""+o+"\""; } public String combine(ident o){ return ": ident \""+o+"\""; } public String combine(verbatim o){ return ": verbatim \""+o+"\""; } public String update(Object o, Fields.any f, String d){ return d+" "; } String _i(int d){ return d==0?"":" "+_i(d-1); } public String combine(Cons _h_, String first, String rest, String _d_){ return ": Cons ("+"\n"+_d_+" "+first+"\n"+_d_+" "+rest+" )"; } public String combine(Empty _h_, String _d_){ return ": Empty ("+" )"; } public String combine(Start _h_, String moves, String _d_){ return ": Start ("+"\n"+_d_+" "+moves+" )"; } public String combine(Regular _h_, String whoOffers, String offers, String whoBuys, String buys, String whoDelivers, String rawmaterials, String whoFinishes, String finished, String _d_){ return ": Regular ("+"\n"+_d_+" "+whoOffers+"\n"+_d_+" "+offers+"\n"+_d_+" "+whoBuys+"\n"+_d_+" "+buys+"\n"+_d_+" "+whoDelivers+"\n"+_d_+" "+rawmaterials+"\n"+_d_+" "+whoFinishes+"\n"+_d_+" "+finished+" )"; } public String combine(Reoffer _h_, String whoOffers, String offers, String whoReoffers, String reoffers, String _d_){ return ": Reoffer ("+"\n"+_d_+" "+whoOffers+"\n"+_d_+" "+offers+"\n"+_d_+" "+whoReoffers+"\n"+_d_+" "+reoffers+" )"; } public String combine(SymmetricMegaMove _h_, String m1, String m2, String _d_){ return ": SymmetricMegaMove ("+"\n"+_d_+" "+m1+"\n"+_d_+" "+m2+" )"; } public String combine(White _h_, String _d_){ return ": White ("+" )"; } public String combine(Black _h_, String _d_){ return ": Black ("+" )"; } public String combine(Derivative _h_, String n, String _d_){ return ": Derivative ("+"\n"+_d_+" "+n+" )"; } public String combine(RawMaterial _h_, String forD, String n, String _d_){ return ": RawMaterial ("+"\n"+_d_+" "+forD+"\n"+_d_+" "+n+" )"; } public String combine(FinishedProduct _h_, String forR, String n, String _d_){ return ": FinishedProduct ("+"\n"+_d_+" "+forR+"\n"+_d_+" "+n+" )"; } public String combine(DerivativeName _h_, String v, String _d_){ return ": DerivativeName ("+"\n"+_d_+" "+v+" )"; } public String combine(RawMaterialName _h_, String v, String _d_){ return ": RawMaterialName ("+"\n"+_d_+" "+v+" )"; } public String combine(FinishedProductName _h_, String v, String _d_){ return ": FinishedProductName ("+"\n"+_d_+" "+v+" )"; } public String combine(Main _h_, String _d_){ return ": Main ("+" )"; } }