Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 73 |  | Methods: | 9
| NCLOC: | 57 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ASTPrimaryPrefix.java | 0% | 26.9% | 77.8% | 28.6% |

1 |  | /* Generated By:JJTree: Do not edit this line. ASTPrimaryPrefix.java */
2 |  |
3 |  | package net.sourceforge.pmd.ast;
4 |  |
5 |  | public class ASTPrimaryPrefix extends SimpleJavaNode {
6 | 3 | public ASTPrimaryPrefix(int id) {
7 | 3 | super(id);
8 |  | }
9 |  |
10 | 3616 | public ASTPrimaryPrefix(JavaParser p, int id) {
11 | 3616 | super(p, id);
12 |  | }
13 |  |
14 |  | private boolean usesThisModifier;
15 |  | private boolean usesSuperModifier;
16 |  |
17 | 43 | public void setUsesThisModifier() {
18 | 43 | usesThisModifier = true;
19 |  | }
20 |  |
21 | 3562 | public boolean usesThisModifier() {
22 | 3562 | return this.usesThisModifier;
23 |  | }
24 |  |
25 | 29 | public void setUsesSuperModifier() {
26 | 29 | usesSuperModifier = true;
27 |  | }
28 |  |
29 | 3552 | public boolean usesSuperModifier() {
30 | 3552 | return this.usesSuperModifier;
31 |  | }
32 |  |
33 | 0 | public String getLabel() {
34 | 0 | String out = getImage();
35 | 0 | if (usesSuperModifier) {
36 | 0 | return "super." + out;
37 | 0 | } else if (usesThisModifier) {
38 | 0 | if (getImage() == null) {
39 | 0 | return "this";
40 |  | } else {
41 | 0 | return "this." + out;
42 |  | }
43 |  | }
44 | 0 | return out;
45 |  | }
46 |  |
47 | 0 | public void dump(String prefix) {
48 | 0 | String out = getImage();
49 | 0 | if (usesSuperModifier) {
50 | 0 | out = "super." + out;
51 | 0 | } else if (usesThisModifier) {
52 | 0 | if (getImage() == null) {
53 | 0 | out = "this";
54 |  | } else {
55 | 0 | out = "this." + out;
56 |  | }
57 |  | }
58 |  |
59 | 0 | if (out == null) {
60 | 0 | System.out.println(toString(prefix));
61 |  | } else {
62 | 0 | System.out.println(toString(prefix) + ":" + out);
63 |  | }
64 | 0 | dumpChildren(prefix);
65 |  | }
66 |  |
67 |  | /**
68 |  | * Accept the visitor. *
69 |  | */
70 | 10370 | public Object jjtAccept(JavaParserVisitor visitor, Object data) {
71 | 10370 | return visitor.visit(this, data);
72 |  | }
73 |  | }