Clover.NET coverage report - Coverage for s2container.net

Coverage timestamp: 2006年5月30日 11:21:29

File Stats: LOC: 125   Methods: 11
NCLOC: 75 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Seasar.Framework.Container\Impl\MethodDefImpl.cs 100.0% 92.9% 90.9% 92.6%
coverage coverage
1   #region Copyright
2   /*
3   * Copyright 2005 the Seasar Foundation and the Others.
4   *
5   * Licensed under the Apache License, Version 2.0 (the "License");
6   * you may not use this file except in compliance with the License.
7   * You may obtain a copy of the License at
8   *
9   * http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14   * either express or implied. See the License for the specific language
15   * governing permissions and limitations under the License.
16   */
17   #endregion
18  
19   using System;
20   using Seasar.Framework.Container.Util;
21  
22   namespace Seasar.Framework.Container.Impl
23   {
24   /// <summary>
25   /// MethodDefImpl の概要の説明です。
26   /// </summary>
27   public class MethodDefImpl : IMethodDef
28   {
29   private string methodName_;
30   private ArgDefSupport argDefSupport_ = new ArgDefSupport();
31   private IS2Container container_;
32   private string expression_;
33  
34 3 public MethodDefImpl()
35   {
36   }
37  
38 28 public MethodDefImpl(string methodName)
39   {
40 28 methodName_ = methodName;
41   }
42  
43   #region MethodDef メンバ
44  
45   public string MethodName
46   {
47 41 get
48   {
49  
50 41 return methodName_;
51   }
52   }
53  
54   public object[] Args
55   {
56 13 get
57   {
58  
59 13 object[] args = new object[this.ArgDefSize];
60 38 for(int i = 0; i < this.ArgDefSize; ++i)
61   {
62 25 args[i] = this.GetArgDef(i).Value;
63   }
64 13 return args;
65   }
66   }
67  
68   public IS2Container Container
69   {
70 0 get
71   {
72  
73   return container_;
74   }
75 28 set
76   {
77  
78 28 container_ = value;
79 28 argDefSupport_.Container = value;
80   }
81   }
82  
83   public string Expression
84   {
85 32 get
86   {
87  
88 32 return expression_;
89   }
90 7 set
91   {
92  
93 7 expression_ = value;
94   }
95   }
96  
97   #endregion
98  
99   #region IArgDefAware メンバ
100  
101 23 public void AddArgDef(IArgDef argDef)
102   {
103  
104 23 argDefSupport_.AddArgDef(argDef);
105   }
106  
107   public int ArgDefSize
108   {
109 76 get
110   {
111  
112 76 return argDefSupport_.ArgDefSize;
113   }
114   }
115  
116 25 public IArgDef GetArgDef(int index)
117   {
118  
119 25 return argDefSupport_.GetArgDef(index);
120   }
121  
122   #endregion
123   }
124   }
125