// ** This class was generated with DemFGen (vers:10/20/2009) package gen; import java.io.FileInputStream; import edu.neu.ccs.demeterf.lib.*; /** Representation of Eq */ public class Eq extends Body{ protected final VC vc1; protected final VC vc2; protected final VC vc3; /** Construct a(n) Eq Instance */ public Eq(VC vc1, VC vc2, VC vc3, int rhs){ super(rhs); this.vc1 = vc1; this.vc2 = vc2; this.vc3 = vc3; } /** Is the given object Equal to this Eq? */ public boolean equals(Object o){ if(!(o instanceof Eq))return false; if(o == this)return true; Eq oo = (Eq)o; return (((Object)vc1).equals(oo.vc1))&&(((Object)vc2).equals(oo.vc2))&&(((Object)vc3).equals(oo.vc3))&&(((Object)rhs).equals(oo.rhs)); } /** Parse an instance of Eq from the given String */ public static Eq parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Eq(); } /** Parse an instance of Eq from the given Stream */ public static Eq parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Eq(); } /** Parse an instance of Eq from the given Reader */ public static Eq parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Eq(); } /** Field Class for Eq.vc1 */ public static class vc1 extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Eq.vc2 */ public static class vc2 extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Eq.vc3 */ public static class vc3 extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } }