01: package ch.ethz.inf.iks.jvmai.jvmdi;
02:
03: import ch.ethz.jvmai.ExceptionCatchJoinPoint;
04: import ch.ethz.jvmai.JoinPointKinds;
05:
06: /**
07: * ExceptionCatchJoinPoint represents a joinpoint related to a catch exception
08: *
09: * @author Angela Nicoara
10: */
11: public class ExceptionCatchJoinPointImpl extends CodeJoinPointImpl
12: implements ExceptionCatchJoinPoint, JoinPointKinds {
13:
14: protected Throwable exception;
15:
16: protected ExceptionCatchJoinPointImpl(ControlFlow cf,
17: JoinPointContext ctx) {
18: super (cf, ctx);
19: target = null;
20: }
21:
22: /**
23: * Specifies the exception object that has been thrown.
24: */
25: public Throwable getException() {
26: return exception;
27: }
28:
29: public String getKind() {
30: return ExceptionCatchJoinPoint.KIND;
31: }
32:
33: public int getMask() {
34: return MASK_CODE_JP | MASK_EXCEPTION_CATCH_ARGS_JP;
35: }
36:
37: }
|