Clover coverage report - PMD - 3.7
Coverage timestamp: Wed May 31 2006 09:25:59 EDT

file stats: | LOC: | 58 |  | Methods: | 9
| NCLOC: | 43 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

ASTPrimarySuffix.java

12.5%

47.1%

77.8%

47.1%

1 |  | /* Generated By:JJTree: Do not edit this line. ASTPrimarySuffix.java */
2 |  |
3 |  | package net.sourceforge.pmd.ast;
4 |  |
5 |  | public class ASTPrimarySuffix extends SimpleJavaNode {
6 | 0 | public ASTPrimarySuffix(int id) {
7 | 0 | super(id);
8 |  | }
9 |  |
10 | 868 | public ASTPrimarySuffix(JavaParser p, int id) {
11 | 868 | super(p, id);
12 |  | }
13 |  |
14 |  | private boolean isArguments;
15 |  | private boolean isArrayDereference;
16 |  |
17 | 36 | public void setIsArrayDereference() {
18 | 36 | isArrayDereference = true;
19 |  | }
20 |  |
21 | 6 | public boolean isArrayDereference() {
22 | 6 | return isArrayDereference;
23 |  | }
24 |  |
25 | 743 | public void setIsArguments() {
26 | 743 | this.isArguments = true;
27 |  | }
28 |  |
29 | 872 | public boolean isArguments() {
30 | 872 | return this.isArguments;
31 |  | }
32 |  |
33 | 4 | public int getArgumentCount() {
34 | 4 | if (!this.isArguments()) {
35 | 0 | throw new RuntimeException("ASTPrimarySuffix.getArgumentCount called, but this is not a method call");
36 |  | }
37 | 4 | return ((ASTArguments)this.getFirstChildOfType(ASTArguments.class)).getArgumentCount();
38 |  | }
39 |  |
40 | 0 | public void dump(String prefix) {
41 | 0 | String out = "";
42 | 0 | if (isArrayDereference()) {
43 | 0 | out += ":[";
44 |  | }
45 | 0 | if (this.getImage() != null) {
46 | 0 | out += out.length() == 0 ? ":" + this.getImage() : this.getImage();
47 |  | }
48 | 0 | System.out.println(toString(prefix) + out);
49 | 0 | dumpChildren(prefix);
50 |  | }
51 |  |
52 |  | /**
53 |  | * Accept the visitor. *
54 |  | */
55 | 2300 | public Object jjtAccept(JavaParserVisitor visitor, Object data) {
56 | 2300 | return visitor.visit(this, data);
57 |  | }
58 |  | }