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// http://www.mozilla.org/MPL/
07: //
08: // Software distributed under the License is distributed on an "AS IS" basis,
09: // WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
10: // for the specific language governing rights and limitations under the
11: // License.
12: //
13: // The Original Code is prose.
14: //
15: // Contributor(s):
16: //
17: // $Id$
18: // =====================================================================
19: //
20: // (history at end)
21: //
22: package ch.ethz.inf.iks.jvmai.jvmdi;
23:
24: import java.lang.String;
25: import java.lang.Class;
26: import ch.ethz.jvmai.Signature;
27:
28: /**
29: * HotSwapSignatureImpl class.
30: *
31: * @version $Revision$
32: * @author Angela Nicoara
33: * @author Gerald Linhofer
34: */
35: public class HotSwapSignatureImpl implements Signature {
36: private HotSwapJoinPointImpl owner;
37:
38: protected HotSwapSignatureImpl(HotSwapJoinPointImpl owner) {
39: this .owner = owner;
40: }
41:
42: public Class getDeclaringType() {
43: return owner.getMethod().getDeclaringClass();
44: }
45:
46: public int getModifiers() {
47: return owner.getMethod().getModifiers();
48: }
49:
50: public String getName() {
51: return owner.getMethod().getName();
52: }
53:
54: public String toLongString() {
55: return owner.getMethod().toString();
56: }
57:
58: public String toShortString() {
59: return owner.getMethod().toString();
60: }
61:
62: public String toString() {
63: return toShortString();
64: }
65:
66: public Class[] getParameterTypes() {
67: return owner.getMethod().getParameterTypes();
68: }
69:
70: public Class[] getExceptionTypes() {
71: return owner.getMethod().getExceptionTypes();
72: }
73:
74: public String[] getParameterNames() {
75: // TODO
76: throw new RuntimeException("Method not implemented.");
77: }
78:
79: public Class getReturnType() {
80: return owner.getMethod().getReturnType();
81: }
82: }
83:
84: //======================================================================
85: //
86: //$Log$
87: //
|