// ** 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 Display extends edu.neu.ccs.demeterf.ID{ public static String DisplayM(Object o){ return new edu.neu.ccs.demeterf.Traversal(new Display(),edu.neu.ccs.demeterf.Control.builtins()).traverse(o," "); } String combine(byte o){ return ": byte \""+o+"\""; } String combine(short o){ return ": short \""+o+"\""; } String combine(int o){ return ": int \""+o+"\""; } String combine(long o){ return ": long \""+o+"\""; } String combine(float o){ return ": float \""+o+"\""; } String combine(double o){ return ": double \""+o+"\""; } String combine(char o){ return ": char \""+o+"\""; } String combine(boolean o){ return ": boolean \""+o+"\""; } String combine(String o){ return ": String \""+o+"\""; } String combine(ident o){ return ": ident \""+o+"\""; } String combine(verbatim o){ return ": verbatim \""+o+"\""; } String update(Object o, Fields.any f, String d){ return d+" "; } String _i(int d){ return d==0?"":" "+_i(d-1); } String combine(Cons _h_, String first, String rest, String _d_){ return ": Cons ("+"\n"+_d_+" "+first+"\n"+_d_+" "+rest+" )"; } String combine(Empty _h_, String _d_){ return ": Empty ("+" )"; } String combine(Some _h_, String just, String _d_){ return ": Some ("+"\n"+_d_+" "+just+" )"; } String combine(None _h_, String _d_){ return ": None ("+" )"; } String combine(Start _h_, String moves, String _d_){ return ": Start ("+"\n"+_d_+" "+moves+" )"; } String combine(CompleteMove _h_, String w, String b, String _d_){ return ": CompleteMove ("+"\n"+_d_+" "+w+"\n"+_d_+" "+b+" )"; } String combine(Move _h_, String who, String offers, String buys, String reoffers, String rawmaterials, String finishes, String _d_){ return ": Move ("+"\n"+_d_+" "+who+"\n"+_d_+" "+offers+"\n"+_d_+" "+buys+"\n"+_d_+" "+reoffers+"\n"+_d_+" "+rawmaterials+"\n"+_d_+" "+finishes+" )"; } String combine(White _h_, String _d_){ return ": White ("+" )"; } String combine(Black _h_, String _d_){ return ": Black ("+" )"; } String combine(Derivative _h_, String n, String cost, String _d_){ return ": Derivative ("+"\n"+_d_+" "+n+"\n"+_d_+" "+cost+" )"; } String combine(RawMaterial _h_, String forD, String n, String _d_){ return ": RawMaterial ("+"\n"+_d_+" "+forD+"\n"+_d_+" "+n+" )"; } String combine(FinishedProduct _h_, String forR, String n, String quality, String _d_){ return ": FinishedProduct ("+"\n"+_d_+" "+forR+"\n"+_d_+" "+n+"\n"+_d_+" "+quality+" )"; } String combine(LifeEnergy _h_, String v, String _d_){ return ": LifeEnergy ("+"\n"+_d_+" "+v+" )"; } String combine(DerivativeName _h_, String v, String _d_){ return ": DerivativeName ("+"\n"+_d_+" "+v+" )"; } String combine(RawMaterialName _h_, String v, String _d_){ return ": RawMaterialName ("+"\n"+_d_+" "+v+" )"; } String combine(FinishedProductName _h_, String v, String _d_){ return ": FinishedProductName ("+"\n"+_d_+" "+v+" )"; } String combine(Main _h_, String _d_){ return ": Main ("+" )"; } }