|
|||||||||||||||||||
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 | |||||||||||||||
Primitive.java | - | 37.5% | 14.3% | 26.7% |
|
1 |
/*
|
|
2 |
* Copyright (c) 2001-2003 The XDoclet team
|
|
3 |
* All rights reserved.
|
|
4 |
*/
|
|
5 |
package xjavadoc;
|
|
6 |
|
|
7 |
/**
|
|
8 |
* This class represents primitive types
|
|
9 |
*
|
|
10 |
* @author Ara Abrahamian
|
|
11 |
* @author Aslak Hellesøy
|
|
12 |
* @created February 17, 2002
|
|
13 |
*/
|
|
14 |
final class Primitive extends AbstractClass |
|
15 |
{ |
|
16 |
private final String _type;
|
|
17 |
|
|
18 | 1188 |
public Primitive( XJavaDoc xJavaDoc, String name, String type )
|
19 |
{ |
|
20 | 1188 |
super( xJavaDoc, null ); |
21 | 1188 |
setQualifiedName( name ); |
22 | 1188 |
_type = type; |
23 |
} |
|
24 |
|
|
25 | 0 |
public final String getType()
|
26 |
{ |
|
27 | 0 |
return _type;
|
28 |
} |
|
29 |
|
|
30 | 0 |
public final boolean isPrimitive() |
31 |
{ |
|
32 | 0 |
return !getQualifiedName().equals( "void" ); |
33 |
} |
|
34 |
|
|
35 |
/**
|
|
36 |
* whether this class can be saved ( it can not )
|
|
37 |
*
|
|
38 |
* @return always false
|
|
39 |
*/
|
|
40 | 0 |
public boolean isWriteable() |
41 |
{ |
|
42 | 0 |
return false; |
43 |
} |
|
44 |
|
|
45 | 0 |
public XPackage getContainingPackage()
|
46 |
{ |
|
47 | 0 |
return null; |
48 |
} |
|
49 |
|
|
50 |
/**
|
|
51 |
* no op since it's not writeable
|
|
52 |
*/
|
|
53 | 0 |
public void setDirty() |
54 |
{ |
|
55 |
} |
|
56 |
|
|
57 |
/**
|
|
58 |
* this class is not intended to be saved
|
|
59 |
*
|
|
60 |
* @return always false
|
|
61 |
*/
|
|
62 | 0 |
public boolean saveNeeded() |
63 |
{ |
|
64 | 0 |
return false; |
65 |
} |
|
66 |
} |
|
67 |
|
|