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

1 |  | package net.sourceforge.pmd.dfa;
2 |  |
3 |  | import java.util.LinkedList;
4 |  |
5 |  | public class StartOrEndDataFlowNode extends DataFlowNode {
6 |  |
7 |  | private boolean isStartNode;
8 |  |
9 | 101 | public StartOrEndDataFlowNode(LinkedList dataFlow, int line, boolean isStartNode) {
10 | 101 | this.dataFlow = dataFlow;
11 | 101 | if (!this.dataFlow.isEmpty()) {
12 | 45 | DataFlowNode parent = (DataFlowNode) this.dataFlow.getLast();
13 | 45 | parent.addPathToChild(this);
14 |  | }
15 | 101 | this.dataFlow.addLast(this);
16 | 101 | this.line = line;
17 | 101 | this.isStartNode = isStartNode;
18 |  | }
19 |  |
20 | 2 | public String toString() {
21 | 2 | return isStartNode ? "Start node" : "End node";
22 |  | }
23 |  | }