Source code for /engineering/autohit-2003/src/autohit/vm/i/VMIAssert.javaOriginal file VMIAssert.java
   1 /**
   2  * AUTOHIT 2003
   3  * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
   4  * 
   5  * This program is free software; you can redistribute it and/or modify 
   6  * it under the terms of the GNU General Public License as published by 
   7  * the Free Software Foundation; either version 2 of the License, or (at
   8  * your option) any later version.
   9  * This program is distributed in the hope that it will be useful, but
  10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12  * more details.
  13  * 
  14  * You should have received a copy of the GNU General Public License along
  15  * with this program; if not, write to the Free Software Foundation, Inc.,
  16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17  *
  18  * Additional license information can be found in the documentation.
  19  * @author Erich P Gatejen
  20  */
  21 package autohit.vm.i;
  22 
  23 /**
  24  * A Virtual Machine instruction.  ASSERT instruction
  25  *
  26  * @see autohit.vm.i.VMInstruction
  27  *
  28  * @author Erich P. Gatejen
  29  * @version 1.0
  30  * <i>Version History</i>
  31  * <code>EPG - Initial - 8Aug03</code> 
  32  * 
  33  */
  34 public class VMIAssert extends VMInstruction {
  35 
  36 	final static long serialVersionUID = 1;
  37 	
  38 	/**
  39 	 * Jump target.
  40 	 * @serial
  41 	 */
  42 	public	int			t;
  43 	
  44 	/**
  45 	 * OPER flag
  46 	 * @serial
  47 	 */
  48 	public	int			operFlag;
  49 	
  50     /**
  51      *  Default constructor.
  52      */ 
  53     public VMIAssert() {
  54         super(VMInstruction.ASSERT);
  55         operFlag = 0;
  56     }
  57 
  58 	/**
  59 	 * Any exception will be allowed to bubble out
  60 	 * @param tString parseable numeric text
  61 	 */
  62 	public void setT(String  tString) {
  63 		t = Integer.parseInt(tString);
  64 	}
  65 
  66     /**
  67      *  Dump this Instruction.  Mostly for debugging.
  68      *
  69      *  @return a String containing the dump.
  70      */
  71     public String toString() {
  72 		return "VMIAssert " + super.toString() + " --- target=" + t +" :nf=" + operFlag;
  73     }
  74     
  75 }