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