// ** 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 Predicate */ public class Predicate{ protected final List args; protected final JavaCode code; /** Construct a(n) Predicate Instance */ public Predicate(List args, JavaCode code){ this.args = args; this.code = code; } /** Is the given object Equal to this Predicate? */ public boolean equals(Object o){ if(!(o instanceof Predicate))return false; if(o == this)return true; Predicate oo = (Predicate)o; return (((Object)args).equals(oo.args))&&(((Object)code).equals(oo.code)); } /** Parse an instance of Predicate from the given String */ public static Predicate parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Predicate(); } /** Parse an instance of Predicate from the given Stream */ public static Predicate parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Predicate(); } /** Parse an instance of Predicate from the given Reader */ public static Predicate parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Predicate(); } /** Field Class for Predicate.args */ public static class args extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Predicate.code */ public static class code 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 Predicate.args */ public Predicate updateArgs(List _args){ return new Predicate(_args, code); } /** Updater for field Predicate.code */ public Predicate updateCode(JavaCode _code){ return new Predicate(args, _code); } /** Getter for field Predicate.args */ public List getArgs(){ return args; } /** Getter for field Predicate.code */ public JavaCode getCode(){ return code; } }