// ** This file was generated with DemFGen (vers:4/15/2011) package csp; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import scg.*; import java.util.Iterator; /** Representation of Var */ public class Var implements Comparable{ protected ident id; /** Construct a(n) Var Instance */ public Var(ident id){ this.id = id; } /** Is the given object Equal to this Var? */ public boolean equals(Object o){ if(!(o instanceof Var))return false; if(o == this)return true; Var oo = (Var)o; return (((Object)id).equals(oo.id)); } /** Parse an instance of Var from the given String */ public static Var parse(String inpt) throws csp.ParseException{ return new csp.TheParser(new java.io.StringReader(inpt)).parse_Var(); } /** Parse an instance of Var from the given Stream */ public static Var parse(java.io.InputStream inpt) throws csp.ParseException{ return new csp.TheParser(inpt).parse_Var(); } /** Parse an instance of Var from the given Reader */ public static Var parse(java.io.Reader inpt) throws csp.ParseException{ return new csp.TheParser(inpt).parse_Var(); } /** Field Class for Var.id */ public static class id extends edu.neu.ccs.demeterf.Fields.any{} public int compareTo(Var v) { return id.compareTo(v.id); } /** DGP method from Class Display */ public String display(){ return csp.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return csp.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return csp.ToStr.ToStrM(this); } /** DGP method from Class PrintToString */ public String toString(){ return csp.PrintToString.PrintToStringM(this); } /** DGP method from Class HashCode */ public int hashCode(){ return csp.HashCode.HashCodeM(this); } /** Setter for field Var.id */ public void setId(ident _id){ id = _id; } /** Getter for field Var.id */ public ident getId(){ return id; } }