Clover coverage report - XJavaDoc - 1.1 Coverage timestamp: Sun Oct 3 2004 19:56:54 BST FRAMES NO FRAMES |
file stats: | LOC: | 76 |  | Methods: | 11
| NCLOC: | 52 |  | 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
FieldImpl.java | - | 63.6% | 63.6% | 63.6% |

1 |  |
     /*
2 |  |
      * Copyright (c) 2001-2003 The XDoclet team
3 |  |
      * All rights reserved.
4 |  |
      */
5 |  |
     package xjavadoc;
6 |  |
7 |  |
     import java.lang.reflect.Modifier;
8 |  |
9 |  |
     /**
10 |  |
      * @author    Ara Abrahamian (ara_e_w@yahoo.com)
11 |  |
      * @author    Aslak Hellesøy
12 |  |
      * @created   Feb 15, 2002
13 |  |
      * @version   $Revision: 1.17 $
14 |  |
      */
15 |  |
     final class FieldImpl extends MemberImpl implements XField
16 |  |
     {
17 |  |
         private String     _type;
18 |  |
         private int        _dimension;
19 |  |
20 | 2106 |
         public FieldImpl( AbstractClass containingClass, XTagFactory tagFactory )
21 |  |
         {
22 | 2106 |
             super( containingClass, tagFactory );
23 |  |
         }
24 |  |
25 | 0 |
         public final boolean isTransient()
26 |  |
         {
27 | 0 |
             return ( getModifierSpecifier() & Modifier.TRANSIENT ) != 0;
28 |  |
         }
29 |  |
30 | 0 |
         public final boolean isVolatile()
31 |  |
         {
32 | 0 |
             return ( getModifierSpecifier() & Modifier.VOLATILE ) != 0;
33 |  |
         }
34 |  |
35 | 200 |
         public int getDimension()
36 |  |
         {
37 | 200 |
             return _dimension;
38 |  |
         }
39 |  |
40 | 4 |
         public String getTypeAsString()
41 |  |
         {
42 | 4 |
             return _type;
43 |  |
         }
44 |  |
45 | 174 |
         public String getDimensionAsString()
46 |  |
         {
47 | 174 |
             return Util.appendDimensionAsString( getDimension(), new StringBuffer() ).toString();
48 |  |
         }
49 |  |
50 | 180 |
         public XClass getType()
51 |  |
         {
52 | 180 |
             return getContainingAbstractClass().qualify( _type );
53 |  |
         }
54 |  |
55 | 0 |
         public XProgramElement getSuperElement()
56 |  |
         {
57 | 0 |
             return null;
58 |  |
         }
59 |  |
60 | 2106 |
         public void setType( String type )
61 |  |
         {
62 | 2106 |
             _type = type;
63 |  |
         }
64 |  |
65 | 24 |
         public void setDimension( int dimension )
66 |  |
         {
67 | 24 |
             _dimension = dimension;
68 |  |
         }
69 |  |
70 | 0 |
         public String toString()
71 |  |
         {
72 | 0 |
             return getModifiers() + " " + getTypeAsString() + Util.appendDimensionAsString( getDimension(), new StringBuffer() ).toString() + " " +
73 |  |
                 getName();
74 |  |
         }
75 |  |
     }
76 |  |