Clover coverage report - XJavaDoc - 1.1 Coverage timestamp: Sun Oct 3 2004 19:56:54 BST FRAMES NO FRAMES |
file stats: | LOC: | 60 |  | Methods: | 6
| NCLOC: | 41 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
ReturnType.java | 75% | 100% | 100% | 95% |

1 |  |
     /*
2 |  |
      * Copyright (c) 2001-2003 The XDoclet team
3 |  |
      * All rights reserved.
4 |  |
      */
5 |  |
     package xjavadoc;
6 |  |
7 |  |
     /**
8 |  |
      * Implementation of Type for method return types.
9 |  |
      *
10 |  |
      * @author    Aslak Hellesøy
11 |  |
      * @created   20. mars 2003
12 |  |
      * @version   $Revision: 1.3 $
13 |  |
      */
14 |  |
     class ReturnType extends AbstractType
15 |  |
     {
16 |  |
         private MethodImpl _method;
17 |  |
         private String     _dimensionAsString;
18 |  |
         private XClass     _type;
19 |  |
         private String     _typeString = "void";
20 |  |
         private int        _dimension = 0;
21 |  |
22 | 8712 |
         public ReturnType( MethodImpl method )
23 |  |
         {
24 | 8712 |
             _method = method;
25 |  |
         }
26 |  |
27 | 554 |
         public String getDimensionAsString()
28 |  |
         {
29 | 554 |
             if( _dimensionAsString == null )
30 |  |
             {
31 | 554 |
                 _dimensionAsString = Util.appendDimensionAsString( getDimension(), new StringBuffer() ).toString();
32 |  |
             }
33 | 554 |
             return _dimensionAsString;
34 |  |
         }
35 |  |
36 | 562 |
         public XClass getType()
37 |  |
         {
38 | 562 |
             if( _type == null )
39 |  |
             {
40 | 558 |
                 _type = _method.getContainingAbstractClass().qualify( _typeString );
41 |  |
             }
42 | 562 |
             return _type;
43 |  |
         }
44 |  |
45 | 578 |
         public int getDimension()
46 |  |
         {
47 | 578 |
             return _dimension;
48 |  |
         }
49 |  |
50 | 2376 |
         public void setDimension( int dimension )
51 |  |
         {
52 | 2376 |
             _dimension = dimension;
53 |  |
         }
54 |  |
55 | 8712 |
         public void setType( String typeString )
56 |  |
         {
57 | 8712 |
             _typeString = typeString;
58 |  |
         }
59 |  |
     }
60 |  |