KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > prose > jvmai > jikesrvm > advice_weaver > ExceptionJoinPointImpl


1 package ch.ethz.prose.jvmai.jikesrvm.advice_weaver;
2
3
4 /**
5  * Super class for exception throw/catch join points.
6  *
7  * @author Johann Gyger
8  */

9 public class ExceptionJoinPointImpl extends CodeJoinPointImpl {
10
11   /**
12    * Exception associated with this join point.
13    */

14   public Throwable JavaDoc exception;
15
16   /**
17    * Initialize this join point.
18    *
19    * @param id method identifier to which this join point belongs
20    * @param tag AOP tag associated with this join point
21    * @param this0 Object on which this join point is executed (null for static
22    * methods)
23    * @param args actual parameters of `m'
24    * @param exception associated with this join point
25    */

26   public void init(int id, Object JavaDoc tag, Object JavaDoc this0, Object JavaDoc[] args, Throwable JavaDoc exception) {
27     init(id, tag, this0, args);
28     this.exception = exception;
29   }
30
31   public Throwable JavaDoc getException() {
32     return exception;
33   }
34
35 }
36
Popular Tags