// ** 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 Compound */ public class Compound extends DT{ protected final Rung question; protected final DT yes; protected final DT no; /** Construct a(n) Compound Instance */ public Compound(Rung question, DT yes, DT no){ this.question = question; this.yes = yes; this.no = no; } /** Is the given object Equal to this Compound? */ public boolean equals(Object o){ if(!(o instanceof Compound))return false; if(o == this)return true; Compound oo = (Compound)o; return (((Object)question).equals(oo.question))&&(((Object)yes).equals(oo.yes))&&(((Object)no).equals(oo.no)); } /** Parse an instance of Compound from the given String */ public static Compound parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Compound(); } /** Parse an instance of Compound from the given Stream */ public static Compound parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Compound(); } /** Parse an instance of Compound from the given Reader */ public static Compound parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Compound(); } /** Field Class for Compound.question */ public static class question extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Compound.yes */ public static class yes extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Compound.no */ public static class no 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); } }