// ** 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 SecretBinding */ public class SecretBinding extends VariableBinding{ protected final StepName sn; /** Construct a(n) SecretBinding Instance */ public SecretBinding(StepName sn, VariableName varName){ super(varName); this.sn = sn; } /** Is the given object Equal to this SecretBinding? */ public boolean equals(Object o){ if(!(o instanceof SecretBinding))return false; if(o == this)return true; SecretBinding oo = (SecretBinding)o; return (((Object)sn).equals(oo.sn))&&(((Object)varName).equals(oo.varName)); } /** Parse an instance of SecretBinding from the given String */ public static SecretBinding parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_SecretBinding(); } /** Parse an instance of SecretBinding from the given Stream */ public static SecretBinding parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_SecretBinding(); } /** Parse an instance of SecretBinding from the given Reader */ public static SecretBinding parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_SecretBinding(); } /** Field Class for SecretBinding.sn */ public static class sn 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 SecretBinding.sn */ public SecretBinding updateSn(StepName _sn){ return new SecretBinding(_sn, varName); } /** Updater for field SecretBinding.varName */ public SecretBinding updateVarName(VariableName _varName){ return new SecretBinding(sn, _varName); } /** Getter for field SecretBinding.sn */ public StepName getSn(){ return sn; } /** Getter for field SecretBinding.varName */ public VariableName getVarName(){ return varName; } }