1 package gov.nasa.jpf.jvm; 20 21 import gov.nasa.jpf.Config; 22 import gov.nasa.jpf.GenericProperty; 23 import gov.nasa.jpf.VM; 24 25 import java.io.PrintWriter ; 26 27 28 31 public class NoUncaughtExceptionsProperty extends GenericProperty { 32 33 static ExceptionInfo uncaughtXi; 35 36 public NoUncaughtExceptionsProperty (Config config) { 37 uncaughtXi = null; 38 } 39 40 static void setExceptionInfo (ExceptionInfo xi){ 41 uncaughtXi = xi; 42 } 43 44 public String getErrorMessage () { 45 return "uncaught exception"; 46 } 47 48 public boolean check (VM vm, Object arg) { 49 return (uncaughtXi == null); 50 } 51 52 public void printOn (PrintWriter pw) { 53 if (uncaughtXi != null) { 54 uncaughtXi.printOn(pw); 55 } 56 } 57 } 58 | Popular Tags |