KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hammurapi > inspectors > metrics > callertrace > MethodWrapperInvoked


1 /*
2  * Hammurapi
3  * Automated Java code review system.
4  * Copyright (C) 2004 Johannes Bellert
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (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 MethodWrapper{
38     private MethodWrapperDeclaration callerMethod = null;
39     
40     public MethodWrapperInvoked( OperationInfo _method, SourceMarker srcMrk){
41         super( _method, srcMrk);
42     }
43
44     //-- for initial search and test cases
45
public MethodWrapperInvoked( String JavaDoc _name){
46         super(_name);
47         }
48
49     
50     public MethodWrapperDeclaration getDeclarationMethod(){
51         return null;
52     }
53
54     
55     /**
56      * @return Returns the callerMethod.
57      */

58     public MethodWrapperDeclaration getCallerMethod() {
59         return callerMethod;
60     }
61     /**
62      * @param callerMethod The callerMethod to set.
63      */

64     public void setCallerMethod(MethodWrapperDeclaration callerMethod) {
65         this.callerMethod = callerMethod;
66     }
67 }
68
Popular Tags