01: /*
02: * Hammurapi
03: * Automated Java code review system.
04: * Copyright (C) 2004 Johannes Bellert
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * URL: http://www.hammurapi.com
21: * e-Mail: Johannes.Bellert@ercgroup.com
22: *
23: * * Created on Apr 18, 2004
24: *
25: */
26: package org.hammurapi.inspectors.metrics.callertrace;
27:
28: import com.pavelvlasov.jsel.OperationInfo;
29: import com.pavelvlasov.review.SourceMarker;
30:
31: /**
32: * @author mucbj0
33: *
34: * To change the template for this generated type comment go to
35: * Window - Preferences - Java - Code Generation - Code and Comments
36: */
37: public class MethodWrapperInvoked extends MethodWrapperImpl implements
38: MethodWrapper {
39: private MethodWrapperDeclaration callerMethod = null;
40:
41: public MethodWrapperInvoked(OperationInfo _method,
42: SourceMarker srcMrk) {
43: super (_method, srcMrk);
44: }
45:
46: //-- for initial search and test cases
47: public MethodWrapperInvoked(String _name) {
48: super (_name);
49: }
50:
51: public MethodWrapperDeclaration getDeclarationMethod() {
52: return null;
53: }
54:
55: /**
56: * @return Returns the callerMethod.
57: */
58: public MethodWrapperDeclaration getCallerMethod() {
59: return callerMethod;
60: }
61:
62: /**
63: * @param callerMethod The callerMethod to set.
64: */
65: public void setCallerMethod(MethodWrapperDeclaration callerMethod) {
66: this.callerMethod = callerMethod;
67: }
68: }
|