Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST 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 | 447 | public SimpleNode(int i) {
10 | 447 | super(i);
11 |  | }
12 |  |
13 | 447 | public SimpleNode(JspParser p, int i) {
14 | 447 | this(i);
15 | 447 | parser = p;
16 |  | }
17 |  |
18 | 447 | public void jjtOpen() {
19 | 447 | if (beginLine == -1 && parser.token.next != null) {
20 | 381 | beginLine = parser.token.next.beginLine;
21 | 381 | beginColumn = parser.token.next.beginColumn;
22 |  | }
23 |  | }
24 |  |
25 | 447 | public void jjtClose() {
26 | 447 | if (beginLine == -1 && (children == null || children.length == 0)) {
27 | 1 | beginColumn = parser.token.beginColumn;
28 |  | }
29 | 447 | if (beginLine == -1) {
30 | 66 | beginLine = parser.token.beginLine;
31 |  | }
32 | 447 | endLine = parser.token.endLine;
33 | 447 | 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 | 163 | public Object childrenAccept(JspParserVisitor visitor, Object data) {
47 | 163 | if (children != null) {
48 | 128 | for (int i = 0; i < children.length; ++i) {
49 | 154 | ((Node) children[i]).jjtAccept(visitor, data);
50 |  | }
51 |  | }
52 | 163 | return data;
53 |  | }
54 |  |
55 | 282 | public String toString() {
56 | 282 | return JspParserTreeConstants.jjtNodeName[id];
57 |  | }
58 |  | }
59 |  |