KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > inf > iks > jvmai > jvmdi > ExceptionCatchJoinPointImpl


1 package ch.ethz.inf.iks.jvmai.jvmdi;
2
3 import java.util.*;
4 import java.io.*;
5 import ch.ethz.jvmai.JoinPoint;
6 import ch.ethz.jvmai.ExceptionCatchJoinPoint;
7 import ch.ethz.jvmai.JoinPointKinds;
8
9
10 /**
11  * ExceptionCatchJoinPoint represents a joinpoint related to a catch exception
12  *
13  * @author Angela Nicoara
14  */

15 public class ExceptionCatchJoinPointImpl extends CodeJoinPointImpl implements ExceptionCatchJoinPoint,JoinPointKinds {
16
17     protected Throwable JavaDoc exception;
18
19     protected ExceptionCatchJoinPointImpl(ControlFlow cf, JoinPointContext ctx) {
20         super(cf,ctx);
21         target = null;
22     }
23
24     /**
25      * Specifies the exception object that has been thrown.
26      */

27     public Throwable JavaDoc getException() {
28         return exception;
29     }
30
31     public String JavaDoc getKind() {
32         return ExceptionCatchJoinPoint.KIND;
33     }
34
35     public int getMask() {
36         return MASK_CODE_JP | MASK_EXCEPTION_CATCH_ARGS_JP;
37     }
38
39 }
40
Popular Tags