Source code for /engineering/autohit-1998/autohit/vm/VMISeek.javaOriginal file VMISeek.java
   1 /**
   2  * .
   3  * Copyright � 1999 Erich P G.
   4  *
   5  */
   6  
   7 package autohit.vm;
   8 
   9 import java.io.Serializable;
  10 
  11 /**
  12  * A Virtual Machine instruction.  This is a Seek verification.
  13  *
  14  * @see autohit.vm.VMInstruction
  15  *
  16  * @author Erich P. Gatejen
  17  * @version 1.0
  18  * <i>Version History</i>
  19  * <code>EPG - Initial - 4Feb99</code> 
  20  * 
  21  */
  22 public class VMISeek extends VMInstruction {
  23 	
  24 	// --- FINAL FIELDS ------------------------------------------------------	
  25 
  26 	// --- FIELDS ------------------------------------------------------------
  27 
  28     /**
  29      *  The expected string to seek.
  30      *  @serial
  31      */      	    
  32     public String       expected;
  33     
  34 
  35 	// --- PUBLIC METHODS ----------------------------------------------------	
  36 
  37     /**
  38      *  Default constructor.
  39      */ 
  40     public VMISeek() {
  41         nToken = VMInstruction.SEEK;
  42     }
  43 
  44     /**
  45      *  Dump this Instruction.  Mostly for debugging.
  46      *
  47      *  @return a String containing the dump.
  48      */
  49     public String toString() {
  50         StringBuffer d = new StringBuffer();        
  51         d.append(" VMISeek --------------------------- \n");
  52         d.append("    expceted = [" + expected + "]\n");
  53         return d.toString();                
  54     }
  55     
  56 	// --- PRIVATE METHODS ---------------------------------------------------
  57 
  58 }