Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 37 |  | Methods: | 4
| NCLOC: | 16 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ASTThrowStatement.java | 100% | 80% | 75% | 81.8% |

1 |  | /* Generated By:JJTree: Do not edit this line. ASTThrowStatement.java */
2 |  |
3 |  | package net.sourceforge.pmd.ast;
4 |  |
5 |  | public class ASTThrowStatement extends SimpleJavaNode {
6 | 0 | public ASTThrowStatement(int id) {
7 | 0 | super(id);
8 |  | }
9 |  |
10 | 22 | public ASTThrowStatement(JavaParser p, int id) {
11 | 22 | super(p, id);
12 |  | }
13 |  |
14 |  |
15 |  | /**
16 |  | * Accept the visitor. *
17 |  | */
18 | 54 | public Object jjtAccept(JavaParserVisitor visitor, Object data) {
19 | 54 | return visitor.visit(this, data);
20 |  | }
21 |  |
22 |  | /**
23 |  | * Gets the image of the first ASTClassOrInterfaceType child or <code>null</code> if none is found.
24 |  | * Note that when the statement is something like throw new Exception, this method
25 |  | * returns 'Exception' and if the throw statement is like throw e: this method returns 'e'.
26 |  | * A special case of returning <code>null</code> is when the throws is like throw this.e or
27 |  | * throw this.
28 |  | * <p/>
29 |  | * TODO - use symbol table (?)
30 |  | *
31 |  | * @return the image of the first ASTClassOrInterfaceType node found or <code>null</code>
32 |  | */
33 | 6 | public final String getFirstClassOrInterfaceTypeImage() {
34 | 6 | final ASTClassOrInterfaceType t = (ASTClassOrInterfaceType) getFirstChildOfType(ASTClassOrInterfaceType.class);
35 | 6 | return t == null ? null : t.getImage();
36 |  | }
37 |  | }