Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT 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 | 50 | public ImportWrapper(String fullname, String name, SimpleNode node) {
14 | 50 | this.fullname = fullname;
15 | 50 | this.name = name;
16 | 50 | this.node = node;
17 |  | }
18 |  |
19 |  |
20 | 25 | public boolean equals(Object other) {
21 | 25 | ImportWrapper i = (ImportWrapper) other;
22 | 25 | return i.getName().equals(name);
23 |  | }
24 |  |
25 | 76 | public int hashCode() {
26 | 76 | return getName().hashCode();
27 |  | }
28 |  |
29 | 114 | public String getName() {
30 | 114 | return name;
31 |  | }
32 |  |
33 | 3 | public String getFullName() {
34 | 3 | return fullname;
35 |  | }
36 |  |
37 | 4 | public SimpleNode getNode() {
38 | 4 | return node;
39 |  | }
40 |  | }
41 |  |