Source code for /engineering/autohit-1998/autohit/vm/VMIVerify.javaOriginal file VMIVerify.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 verification specification.  It will
  13  * reset a verification context.  Subsequent verification instructions, such as SEEK and
  14  * EXEC, will use the fresh context.
  15  *
  16  * This can specify a size verification.  CRC is a separate instruction.
  17  *
  18  * @see autohit.vm.VMInstruction
  19  * @see autohit.vm.VMICrc
  20  *
  21  * @author Erich P. Gatejen
  22  * @version 1.0
  23  * <i>Version History</i>
  24  * <code>EPG - Initial - 4Feb99</code> 
  25  * 
  26  */
  27 public class VMIVerify extends VMInstruction {
  28 	
  29 	// --- FINAL FIELDS ------------------------------------------------------	
  30 
  31     /*
  32      * Tags the size field as unimportant
  33      */
  34      public static final int   NO_SIZE     = 0;       
  35 
  36 	// --- FIELDS ------------------------------------------------------------
  37 
  38     /**
  39      *  Content size.
  40      *  @serial
  41      */      	    
  42     public int           size;
  43     
  44 
  45 	// --- PUBLIC METHODS ----------------------------------------------------	
  46 
  47     /**
  48      *  Default constructor.
  49      */ 
  50     public VMIVerify() {
  51         nToken = VMInstruction.VERIFY;
  52         size   = NO_SIZE; 
  53     }
  54 
  55     /**
  56      *  Dump this Instruction.  Mostly for debugging.
  57      *
  58      *  @return a String containing the dump.
  59      */
  60     public String toString() {
  61         StringBuffer d = new StringBuffer();        
  62         d.append(" VMIVerify ------------------------ \n");
  63         d.append("    size = " + size + "\n");
  64         return d.toString();                
  65     }
  66     
  67 	// --- PRIVATE METHODS ---------------------------------------------------
  68 
  69 }