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