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