// ** This class was generated with DemFGen (vers:06/04/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.demfgen.lib.*; /** Representation of Type */ public class Type{ public Kind kind; public List instances; /** Construct a(n) Type Instance */ public Type(Kind kind, List instances){ this.kind = kind; this.instances = instances; } /** Is the given object Equal to this Type? */ public boolean equals(Object o){ if(!(o instanceof Type))return false; if(o == this)return true; Type oo = (Type)o; return (((Object)kind).equals(oo.kind))&&(((Object)instances).equals(oo.instances)); } /** Parse an instance of Type from the given String */ public static Type parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Type(); } /** Parse an instance of Type from the given Stream */ public static Type parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Type(); } /** Parse an instance of Type from the given Reader */ public static Type parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Type(); } /** Field Class for Type.kind */ public static class kind extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Type.instances */ public static class instances extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class PrintHeap */ public String print(){ return gen.PrintHeap.PrintHeapM(this); } /** DGP method from Class PrintHeapToString */ public String toString(){ return gen.PrintHeapToString.PrintHeapToStringM(this); } }