// ** 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 AndClaim */ public class AndClaim extends CompoundClaim{ protected final Claim c1; protected final Claim c2; /** Construct a(n) AndClaim Instance */ public AndClaim(Claim c1, Claim c2, Option args){ super(args); this.c1 = c1; this.c2 = c2; } /** Is the given object Equal to this AndClaim? */ public boolean equals(Object o){ if(!(o instanceof AndClaim))return false; if(o == this)return true; AndClaim oo = (AndClaim)o; return (((Object)c1).equals(oo.c1))&&(((Object)c2).equals(oo.c2))&&(((Object)args).equals(oo.args)); } /** Parse an instance of AndClaim from the given String */ public static AndClaim parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_AndClaim(); } /** Parse an instance of AndClaim from the given Stream */ public static AndClaim parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_AndClaim(); } /** Parse an instance of AndClaim from the given Reader */ public static AndClaim parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_AndClaim(); } /** Field Class for AndClaim.c1 */ public static class c1 extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for AndClaim.c2 */ public static class c2 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); } /** Updater for field AndClaim.c1 */ public AndClaim updateC1(Claim _c1){ return new AndClaim(_c1, c2, args); } /** Updater for field AndClaim.c2 */ public AndClaim updateC2(Claim _c2){ return new AndClaim(c1, _c2, args); } /** Updater for field AndClaim.args */ public AndClaim updateArgs(Option _args){ return new AndClaim(c1, c2, _args); } /** Getter for field AndClaim.c1 */ public Claim getC1(){ return c1; } /** Getter for field AndClaim.c2 */ public Claim getC2(){ return c2; } /** Getter for field AndClaim.args */ public Option getArgs(){ return args; } }