1 27 package ch.ethz.inf.iks.jvmai.jvmdi; 28 29 import java.util.*; 31 import java.io.*; 32 import ch.ethz.jvmai.JoinPoint; 33 import ch.ethz.jvmai.ExceptionJoinPoint; 34 import ch.ethz.jvmai.JoinPointKinds; 35 36 37 45 public 46 class ExceptionJoinPointImpl extends CodeJoinPointImpl implements ExceptionJoinPoint,JoinPointKinds { 47 48 protected Throwable exception; 49 protected Class handlerClass; 50 51 protected ExceptionJoinPointImpl(ControlFlow cf, JoinPointContext ctx) 52 { 53 super(cf,ctx); 54 target = null; 55 } 56 57 60 public Throwable getException() 61 { 62 return exception; 63 } 64 65 67 public boolean hasHandler() 68 { 69 return (handlerClass != null); 70 } 71 72 public Class handlerClass() 73 { 74 return handlerClass; 75 } 76 77 78 public String getKind() 79 { 80 return ExceptionJoinPoint.KIND; 81 } 82 83 public int getMask() 84 { 85 return MASK_CODE_JP | MASK_EXCEPTION_THROW_ARGS_JP; 86 } 87 88 } 89 90 91 | Popular Tags |