// ** This class was generated with DemFGen (vers:02/27/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Money */ public class Money{ public final int v; /** Construct a(n) Money Instance */ public Money(int v){ this.v = v; } /** Is the given Money Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Money))return false; Money oo = (Money)o; return (((Object)v).equals(oo.v)); } /** Parse an instance of Money from the given String */ public static Money parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Money(); } /** Parse an instance of Money from the given Stream */ public static Money parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Money(); } /** Parse an instance of Money from the given Reader */ public static Money parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Money(); } /** Field Class for Money.v */ public static class v extends edu.neu.ccs.demeterf.control.Fields.any{} /** 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); } }