// ** This file was generated with DemFGen (vers:12/15/2010) package csp; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import java.lang.reflect.*; import scg.*; /** 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 arg0) { // TODO Auto-generated method stub return 0; } /** DGP method from Class Print */ public String print(){ return csp.Print.PrintM(this); } /** Setter for field Var.id */ public void setId(ident _id){ id = _id; } /** Getter for field Var.id */ public ident getId(){ return id; } }