Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 49 |  | Methods: | 4
| NCLOC: | 20 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
TargetJDK1_4.java | - | 50% | 50% | 50% |

1 |  | /*
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | */
4 |  | package net.sourceforge.pmd;
5 |  |
6 |  | import net.sourceforge.pmd.ast.JavaCharStream;
7 |  | import net.sourceforge.pmd.ast.JavaParser;
8 |  | import net.sourceforge.pmd.ast.JavaParserTokenManager;
9 |  |
10 |  | import java.io.InputStream;
11 |  | import java.io.Reader;
12 |  |
13 |  | /**
14 |  | * This is an implementation of {@link net.sourceforge.pmd.TargetJDKVersion} for
15 |  | * JDK 1.4.
16 |  | *
17 |  | * @author Tom Copeland
18 |  | */
19 |  | public class TargetJDK1_4 implements TargetJDKVersion {
20 |  |
21 |  | /**
22 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(InputStream)
23 |  | */
24 | 0 | public JavaParser createParser(InputStream in) {
25 | 0 | return new JavaParser(new JavaCharStream(in));
26 |  | }
27 |  |
28 |  | /**
29 |  | * @see net.sourceforge.pmd.TargetJDKVersion#createParser(Reader)
30 |  | */
31 | 150 | public JavaParser createParser(Reader in) {
32 | 150 | return new JavaParser(new JavaCharStream(in));
33 |  | }
34 |  |
35 |  | /**
36 |  | * Creates a token manager for the parser.
37 |  | *
38 |  | * @param in the reader for which to create a token manager
39 |  | * @return a token manager
40 |  | */
41 | 8 | public JavaParserTokenManager createJavaParserTokenManager(Reader in) {
42 | 8 | return new JavaParserTokenManager(new JavaCharStream(in));
43 |  | }
44 |  |
45 | 0 | public String getVersionString() {
46 | 0 | return "1.4";
47 |  | }
48 |  |
49 |  | }