Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 41 |  | Methods: | 6
| NCLOC: | 28 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ImportWrapper.java | - | 100% | 100% | 100% |

1 |  | /**
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | */
4 |  | package net.sourceforge.pmd.rules;
5 |  |
6 |  | import net.sourceforge.pmd.ast.SimpleNode;
7 |  |
8 |  | public class ImportWrapper {
9 |  | private SimpleNode node;
10 |  | private String name;
11 |  | private String fullname;
12 |  |
13 | 53 | public ImportWrapper(String fullname, String name, SimpleNode node) {
14 | 53 | this.fullname = fullname;
15 | 53 | this.name = name;
16 | 53 | this.node = node;
17 |  | }
18 |  |
19 |  |
20 | 27 | public boolean equals(Object other) {
21 | 27 | ImportWrapper i = (ImportWrapper) other;
22 | 27 | return i.getName().equals(name);
23 |  | }
24 |  |
25 | 80 | public int hashCode() {
26 | 80 | return getName().hashCode();
27 |  | }
28 |  |
29 | 120 | public String getName() {
30 | 120 | return name;
31 |  | }
32 |  |
33 | 4 | public String getFullName() {
34 | 4 | return fullname;
35 |  | }
36 |  |
37 | 5 | public SimpleNode getNode() {
38 | 5 | return node;
39 |  | }
40 |  | }
41 |  |