01: //
02: // This file is part of the prose package.
03: //
04: // The contents of this file are subject to the Mozilla Public License
05: // Version 1.1 (the "License"); you may not use this file except in
06: // compliance with the License. You may obtain a copy of the License at
07: // http://www.mozilla.org/MPL/
08: //
09: // Software distributed under the License is distributed on an "AS IS" basis,
10: // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11: // for the specific language governing rights and limitations under the
12: // License.
13: //
14: // The Original Code is prose.
15: //
16: // The Initial Developer of the Original Code is Angela Nicoara. Portions
17: // created by Angela Nicoara are Copyright (C) 2002 Angela Nicoara.
18: // All Rights Reserved.
19: //
20: // Contributor(s):
21: // $Id$
22: // =====================================================================
23: //
24: // (history at end)
25: //
26:
27: package ch.ethz.prose.jvmai.jikesrvm.advice_weaver;
28:
29: /**
30: * Super class for exception throw/catch join points.
31: *
32: * @version $Revision$
33: * @author Johann Gyger
34: * @author Angela Nicoara
35: */
36: public class ExceptionJoinPointImpl extends CodeJoinPointImpl {
37:
38: /**
39: * Exception associated with this join point.
40: */
41: public Throwable exception;
42:
43: /**
44: * Initialize this join point.
45: *
46: * @param id method identifier to which this join point belongs
47: * @param tag AOP tag associated with this join point
48: * @param this0 Object on which this join point is executed (null for static
49: * methods)
50: * @param args actual parameters of `m'
51: * @param exception associated with this join point
52: */
53: public void init(int id, Object tag, Object this 0, Object[] args,
54: Throwable exception) {
55: init(id, tag, this 0, args);
56: this .exception = exception;
57: }
58:
59: public Throwable getException() {
60: return exception;
61: }
62:
63: }
64:
65: //======================================================================
66: //
67: // $Log$
68: //
|