Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ExceptionHandler.java

00001 package gov.nasa.arc.ase.jpf.jvm;
00002 
00003 /**
00004  * Stores the information about an exception handler.
00005  */
00006 public class ExceptionHandler {
00007   /**
00008    * Name of the exception caught.
00009    */
00010   private String name;
00011 
00012   /**
00013    * The first instruction belonging to this handler.
00014    */
00015   private int begin;
00016 
00017   /**
00018    * The last instruction belonging to this handler.
00019    */
00020   private int end;
00021 
00022   /**
00023    * The offset of the handler.
00024    */
00025   private int handler;
00026 
00027   /**
00028    * Creates a new exception handler.
00029    */
00030   public ExceptionHandler(String n, int b, int e, int h) {
00031     name = n;
00032     begin = b;
00033     end = e;
00034     handler = h;
00035   }  
00036   /**
00037    * Returns the first instruction in the block.
00038    */
00039   public int getBegin() {
00040     return begin;
00041   }  
00042   /**
00043    * Returns the last instruction in the block.
00044    */
00045   public int getEnd() {
00046     return end;
00047   }  
00048   /**
00049    * Returns the instruction location for the handler.
00050    */
00051   public int getHandler() {
00052     return handler;
00053   }  
00054   /**
00055    * Returns the name of the exception caught.
00056    */
00057   public String getName() {
00058     return name;
00059   }  
00060 }

Generated at Thu Feb 7 06:45:15 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001