Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 59 |  | Methods: | 7
| NCLOC: | 41 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
SimpleNode.java | 100% | 94.4% | 85.7% | 94.3% |

1 |  | /* Generated By:JJTree: Do not edit this line. SimpleNode.java */
2 |  |
3 |  | package net.sourceforge.pmd.jsp.ast;
4 |  |
5 |  |
6 |  | public class SimpleNode extends net.sourceforge.pmd.ast.SimpleNode implements Node {
7 |  | protected JspParser parser;
8 |  |
9 | 442 | public SimpleNode(int i) {
10 | 442 | super(i);
11 |  | }
12 |  |
13 | 442 | public SimpleNode(JspParser p, int i) {
14 | 442 | this(i);
15 | 442 | parser = p;
16 |  | }
17 |  |
18 | 442 | public void jjtOpen() {
19 | 442 | if (beginLine == -1 && parser.token.next != null) {
20 | 377 | beginLine = parser.token.next.beginLine;
21 | 377 | beginColumn = parser.token.next.beginColumn;
22 |  | }
23 |  | }
24 |  |
25 | 442 | public void jjtClose() {
26 | 442 | if (beginLine == -1 && (children == null || children.length == 0)) {
27 | 1 | beginColumn = parser.token.beginColumn;
28 |  | }
29 | 442 | if (beginLine == -1) {
30 | 65 | beginLine = parser.token.beginLine;
31 |  | }
32 | 442 | endLine = parser.token.endLine;
33 | 442 | endColumn = parser.token.endColumn;
34 |  | }
35 |  |
36 |  | /**
37 |  | * Accept the visitor. *
38 |  | */
39 | 0 | public Object jjtAccept(JspParserVisitor visitor, Object data) {
40 | 0 | return visitor.visit(this, data);
41 |  | }
42 |  |
43 |  | /**
44 |  | * Accept the visitor. *
45 |  | */
46 | 158 | public Object childrenAccept(JspParserVisitor visitor, Object data) {
47 | 158 | if (children != null) {
48 | 125 | for (int i = 0; i < children.length; ++i) {
49 | 149 | ((Node) children[i]).jjtAccept(visitor, data);
50 |  | }
51 |  | }
52 | 158 | return data;
53 |  | }
54 |  |
55 | 282 | public String toString() {
56 | 282 | return JspParserTreeConstants.jjtNodeName[id];
57 |  | }
58 |  | }
59 |  |