// ** 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 ExistsClaim */ public class ExistsClaim extends CompoundClaim{ protected final Variable var; protected final VarDomain d; protected final Claim c; /** Construct a(n) ExistsClaim Instance */ public ExistsClaim(Variable var, VarDomain d, Claim c, Option args){ super(args); this.var = var; this.d = d; this.c = c; } /** Is the given object Equal to this ExistsClaim? */ public boolean equals(Object o){ if(!(o instanceof ExistsClaim))return false; if(o == this)return true; ExistsClaim oo = (ExistsClaim)o; return (((Object)var).equals(oo.var))&&(((Object)d).equals(oo.d))&&(((Object)c).equals(oo.c))&&(((Object)args).equals(oo.args)); } /** Parse an instance of ExistsClaim from the given String */ public static ExistsClaim parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_ExistsClaim(); } /** Parse an instance of ExistsClaim from the given Stream */ public static ExistsClaim parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_ExistsClaim(); } /** Parse an instance of ExistsClaim from the given Reader */ public static ExistsClaim parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_ExistsClaim(); } /** Field Class for ExistsClaim.var */ public static class var extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for ExistsClaim.d */ public static class d extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for ExistsClaim.c */ public static class c 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 ExistsClaim.var */ public ExistsClaim updateVar(Variable _var){ return new ExistsClaim(_var, d, c, args); } /** Updater for field ExistsClaim.d */ public ExistsClaim updateD(VarDomain _d){ return new ExistsClaim(var, _d, c, args); } /** Updater for field ExistsClaim.c */ public ExistsClaim updateC(Claim _c){ return new ExistsClaim(var, d, _c, args); } /** Updater for field ExistsClaim.args */ public ExistsClaim updateArgs(Option _args){ return new ExistsClaim(var, d, c, _args); } /** Getter for field ExistsClaim.var */ public Variable getVar(){ return var; } /** Getter for field ExistsClaim.d */ public VarDomain getD(){ return d; } /** Getter for field ExistsClaim.c */ public Claim getC(){ return c; } /** Getter for field ExistsClaim.args */ public Option getArgs(){ return args; } }