// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Rung */ public class Rung{ protected final int i; /** Construct a(n) Rung Instance */ public Rung(int i){ this.i = i; } /** Is the given object Equal to this Rung? */ public boolean equals(Object o){ if(!(o instanceof Rung))return false; if(o == this)return true; Rung oo = (Rung)o; return (((Object)i).equals(oo.i)); } /** Parse an instance of Rung from the given String */ public static Rung parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Rung(); } /** Parse an instance of Rung from the given Stream */ public static Rung parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Rung(); } /** Parse an instance of Rung from the given Reader */ public static Rung parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Rung(); } /** Field Class for Rung.i */ public static class i extends edu.neu.ccs.demeterf.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); } }