Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 42 |  | Methods: | 7
| NCLOC: | 28 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ASTClassOrInterfaceDeclaration.java | 0% | 50% | 71.4% | 47.6% |

1 |  | /* Generated By:JJTree: Do not edit this line. ASTClassOrInterfaceDeclaration.java */
2 |  |
3 |  | package net.sourceforge.pmd.ast;
4 |  |
5 |  | public class ASTClassOrInterfaceDeclaration extends AccessNode {
6 | 0 | public ASTClassOrInterfaceDeclaration(int id) {
7 | 0 | super(id);
8 |  | }
9 |  |
10 | 1482 | public ASTClassOrInterfaceDeclaration(JavaParser p, int id) {
11 | 1482 | super(p, id);
12 |  | }
13 |  |
14 |  | /**
15 |  | * Accept the visitor. *
16 |  | */
17 | 4193 | public Object jjtAccept(JavaParserVisitor visitor, Object data) {
18 | 4193 | return visitor.visit(this, data);
19 |  | }
20 |  |
21 | 74 | public boolean isNested() {
22 | 74 | return jjtGetParent() instanceof ASTClassOrInterfaceBodyDeclaration;
23 |  | }
24 |  |
25 |  | private boolean isInterface;
26 |  |
27 | 926 | public boolean isInterface() {
28 | 926 | return this.isInterface;
29 |  | }
30 |  |
31 | 59 | public void setInterface() {
32 | 59 | this.isInterface = true;
33 |  | }
34 |  |
35 | 0 | public void dump(String prefix) {
36 | 0 | String interfaceStr = isInterface ? "interface" : "class";
37 | 0 | String innerStr = isNested() ? "(nested)" : "";
38 | 0 | System.out.println(toString(prefix) + "(" + getImage() + ")(" + interfaceStr + ")" + innerStr);
39 | 0 | dumpChildren(prefix);
40 |  | }
41 |  |
42 |  | }