Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 40 |  | Methods: | 7
| NCLOC: | 25 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ASTPrimitiveType.java | - | 57.1% | 57.1% | 57.1% |

1 |  | /* Generated By:JJTree: Do not edit this line. ASTPrimitiveType.java */
2 |  |
3 |  | package net.sourceforge.pmd.ast;
4 |  |
5 |  | public class ASTPrimitiveType extends SimpleJavaNode implements Dimensionable {
6 |  |
7 | 0 | public ASTPrimitiveType(int id) {
8 | 0 | super(id);
9 |  | }
10 |  |
11 | 839 | public ASTPrimitiveType(JavaParser p, int id) {
12 | 839 | super(p, id);
13 |  | }
14 |  |
15 | 1 | public boolean isBoolean() {
16 | 1 | return getImage().equals("boolean");
17 |  | }
18 |  |
19 |  | /**
20 |  | * Accept the visitor. *
21 |  | */
22 | 2190 | public Object jjtAccept(JavaParserVisitor visitor, Object data) {
23 | 2190 | return visitor.visit(this, data);
24 |  | }
25 |  |
26 |  | private int arrayDepth;
27 |  |
28 | 0 | public void bumpArrayDepth() {
29 | 0 | arrayDepth++;
30 |  | }
31 |  |
32 | 38 | public int getArrayDepth() {
33 | 38 | return arrayDepth;
34 |  | }
35 |  |
36 | 0 | public boolean isArray() {
37 | 0 | return arrayDepth > 0;
38 |  | }
39 |  |
40 |  | }