// ** This class was generated with DemFGen (vers:09/27/2009) package gen; import edu.neu.ccs.demeterf.lib.*; /** Representation of IfNZ */ public class IfNZ extends CtrlOp{ protected final ident id; /** Construct a(n) IfNZ Instance */ public IfNZ(ident id){ this.id = id; } /** Is the given object Equal to this IfNZ? */ public boolean equals(Object o){ if(!(o instanceof IfNZ))return false; if(o == this)return true; IfNZ oo = (IfNZ)o; return (((Object)id).equals(oo.id)); } /** Parse an instance of IfNZ from the given String */ public static IfNZ parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_IfNZ(); } /** Parse an instance of IfNZ from the given Stream */ public static IfNZ parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_IfNZ(); } /** Parse an instance of IfNZ from the given Reader */ public static IfNZ parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_IfNZ(); } /** Field Class for IfNZ.id */ public static class id extends edu.neu.ccs.demeterf.control.Fields.any{} String id(){ return ""+id; } boolean branch(ExecStack s){ return (s.top() != 0); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** Getter for field IfNZ.id */ public ident getId(){ return id; } }