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

file stats: | LOC: | 63 |  | Methods: | 7
| NCLOC: | 39 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL
SimpleJavaNode.java | 100% | 94.1% | 85.7% | 94.1% |

1 |  | package net.sourceforge.pmd.ast;
2 |  |
3 |  | public class SimpleJavaNode extends SimpleNode implements JavaNode {
4 |  |
5 | 71018 | public SimpleJavaNode(JavaParser p, int i) {
6 | 71018 | super(p, i);
7 |  | }
8 |  |
9 | 23790 | public SimpleJavaNode(int i) {
10 | 23790 | super(i);
11 |  | }
12 |  |
13 | 71018 | public void jjtOpen() {
14 | 71018 | if (beginLine == -1 && parser.token.next != null) {
15 | 58980 | beginLine = parser.token.next.beginLine;
16 | 58980 | beginColumn = parser.token.next.beginColumn;
17 |  | }
18 |  | }
19 |  |
20 | 39738 | public void jjtClose() {
21 | 39738 | if (beginLine == -1 && (children == null || children.length == 0)) {
22 | 772 | beginColumn = parser.token.beginColumn;
23 |  | }
24 | 39738 | if (beginLine == -1) {
25 | 4824 | beginLine = parser.token.beginLine;
26 |  | }
27 | 39738 | endLine = parser.token.endLine;
28 | 39738 | endColumn = parser.token.endColumn;
29 |  | }
30 |  |
31 |  | /**
32 |  | * Accept the visitor. *
33 |  | */
34 | 0 | public Object jjtAccept(JavaParserVisitor visitor, Object data) {
35 | 0 | return visitor.visit(this, data);
36 |  | }
37 |  |
38 |  | /**
39 |  | * Accept the visitor. *
40 |  | */
41 | 100497 | public Object childrenAccept(JavaParserVisitor visitor, Object data) {
42 | 100497 | if (children != null) {
43 | 78703 | for (int i = 0; i < children.length; ++i) {
44 | 98114 | ((JavaNode) children[i]).jjtAccept(visitor, data);
45 |  | }
46 |  | }
47 | 100497 | return data;
48 |  | }
49 |  |
50 |  | /* You can override these two methods in subclasses of SimpleNode to
51 |  | customize the way the node appears when the tree is dumped. If
52 |  | your output uses more than one line you should override
53 |  | toString(String), otherwise overriding toString() is probably all
54 |  | you need to do.
55 |  |
56 |  | Changing this method is dangerous, since it is used by the XPathRule
57 |  | for evaluating Element Names !!
58 |  | */
59 |  |
60 | 20581 | public String toString() {
61 | 20581 | return JavaParserTreeConstants.jjtNodeName[id];
62 |  | }
63 |  | }