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

file stats: | LOC: | 22 |  | Methods: | 1
| NCLOC: | 12 |  | Classes: | 1

Source file | Conditionals | Statements | Methods | TOTAL

Java13Parser.java

-

100%

100%

100%

1 |  | package net.sourceforge.pmd.parsers;
2 |  |
3 |  | import net.sourceforge.pmd.ast.JavaCharStream;
4 |  | import net.sourceforge.pmd.ast.JavaParser;
5 |  | import net.sourceforge.pmd.ast.ParseException;
6 |  |
7 |  | import java.io.Reader;
8 |  |
9 |  | /**
10 |  | * Adapter for the JavaParser, using Java 1.3 grammar.
11 |  | *
12 |  | * @author Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be
13 |  | */
14 |  | public class Java13Parser implements Parser {
15 |  |
16 | 1 | public Object parse(Reader source) throws ParseException {
17 | 1 | JavaParser parser = new JavaParser(new JavaCharStream(source));
18 | 1 | parser.setJDK13();
19 | 1 | return parser.CompilationUnit();
20 |  | }
21 |  |
22 |  | }