package clist.visitor; import clist.CLList; public class FoldHelper implements ICLVisitor { public final static FoldHelper Singleton = new FoldHelper (); private FoldHelper() { } /** * @param host * @param start * @param input * @return */ public Object nullCase(CLList host, CLList start, Object input) { return ""; } /** * @param host * @param start * @param input * @return */ public Object nonNullCase(CLList host, CLList start, Object input) { /* AGarment g; if (host.clockwiseTail().equals(start)) { g = (AGarment) host.remClockwise(); g.toCleanPile (); retrun g.toString() + "."; } else { g = (AGarment) host.remClockwise(); g.toCleanPile (); g.toString() + ", " + (String)host.excecute(this, start, null); } */ return (null); // NYI } }