// ** This class was generated with DemFGen (09/26/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(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(RawMaterial _h_, String constraints, String _d_){ return ": RawMaterial ("+"\n"+_d_+" "+constraints+" )"; } String combine(Constraint _h_, String w, String r, String cs, String _d_){ return ": Constraint ("+"\n"+_d_+" "+w+"\n"+_d_+" "+r+"\n"+_d_+" "+cs+" )"; } String combine(Weight _h_, String v, String _d_){ return ": Weight ("+"\n"+_d_+" "+v+" )"; } String combine(RelationNr _h_, String v, String _d_){ return ": RelationNr ("+"\n"+_d_+" "+v+" )"; } String combine(Variable _h_, String v, String _d_){ return ": Variable ("+"\n"+_d_+" "+v+" )"; } String combine(Predicate _h_, String relations, String _d_){ return ": Predicate ("+"\n"+_d_+" "+relations+" )"; } String combine(FinishedProduct _h_, String assignment, String _d_){ return ": FinishedProduct ("+"\n"+_d_+" "+assignment+" )"; } String combine(SingleAssignment _h_, String var, String value, String _d_){ return ": SingleAssignment ("+"\n"+_d_+" "+var+"\n"+_d_+" "+value+" )"; } }