// ** This class was generated with DemFGen (vers:02/11/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Main */ public class Main{ /** Construct a(n) Main Instance */ public Main(){ } /** Is the given Main Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Main))return false; Main oo = (Main)o; return true; } /** Parse an instance of Main from the given String */ public static Main parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Main(); } /** Parse an instance of Main from the given Stream */ public static Main parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Main(); } /** Parse an instance of Main from the given Reader */ public static Main parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Main(); } public static void p(String s){ System.out.print(s); } public static void main(String args[]) throws Exception { Start start = Start.parse(System.in); // some sample functionality p(start.display() + "\n"); p(start.print() + "\n"); p(start.toStr() + "\n"); System.out.println(start.equals(start)); } /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } }