// ** 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 variableNameResult, Option variableNameSource){ super(variableNameResult, variableNameSource); 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)variableNameResult).equals(oo.variableNameResult))&&(((Object)variableNameSource).equals(oo.variableNameSource)); } /** 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, variableNameResult, variableNameSource); } /** Updater for field SecretBinding.variableNameResult */ public SecretBinding updateVariableNameResult(VariableName _variableNameResult){ return new SecretBinding(sn, _variableNameResult, variableNameSource); } /** Updater for field SecretBinding.variableNameSource */ public SecretBinding updateVariableNameSource(Option _variableNameSource){ return new SecretBinding(sn, variableNameResult, _variableNameSource); } /** Getter for field SecretBinding.sn */ public StepName getSn(){ return sn; } /** Getter for field SecretBinding.variableNameResult */ public VariableName getVariableNameResult(){ return variableNameResult; } /** Getter for field SecretBinding.variableNameSource */ public Option getVariableNameSource(){ return variableNameSource; } }