// ** 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 InstancePredicate */ public class InstancePredicate{ protected final PredicateBody body; /** Construct a(n) InstancePredicate Instance */ public InstancePredicate(PredicateBody body){ this.body = body; } /** Is the given object Equal to this InstancePredicate? */ public boolean equals(Object o){ if(!(o instanceof InstancePredicate))return false; if(o == this)return true; InstancePredicate oo = (InstancePredicate)o; return (((Object)body).equals(oo.body)); } /** Parse an instance of InstancePredicate from the given String */ public static InstancePredicate parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_InstancePredicate(); } /** Parse an instance of InstancePredicate from the given Stream */ public static InstancePredicate parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_InstancePredicate(); } /** Parse an instance of InstancePredicate from the given Reader */ public static InstancePredicate parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_InstancePredicate(); } /** Field Class for InstancePredicate.body */ public static class body 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 InstancePredicate.body */ public InstancePredicate updateBody(PredicateBody _body){ return new InstancePredicate(_body); } /** Getter for field InstancePredicate.body */ public PredicateBody getBody(){ return body; } }