Clover coverage report - PMD - 3.7 Coverage timestamp: Wed May 31 2006 09:25:59 EDT FRAMES NO FRAMES |
file stats: | LOC: | 34 |  | Methods: | 4
| NCLOC: | 22 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
JavaLanguage.java | - | 50% | 25% | 40% |

1 |  | /**
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | */
4 |  | package net.sourceforge.pmd.cpd;
5 |  |
6 |  | import net.sourceforge.pmd.SourceFileSelector;
7 |  |
8 |  | import java.io.FilenameFilter;
9 |  | import java.util.Properties;
10 |  |
11 |  | public class JavaLanguage implements Language {
12 |  |
13 |  | private JavaTokenizer tokenizer;
14 |  |
15 |  | private SourceFileSelector sourceFileSelector;
16 |  |
17 | 0 | public JavaLanguage() {
18 | 0 | this(new Properties());
19 |  | }
20 |  |
21 | 1 | public JavaLanguage(Properties properties) {
22 | 1 | tokenizer = new JavaTokenizer();
23 | 1 | tokenizer.setProperties(properties);
24 | 1 | sourceFileSelector = new SourceFileSelector();
25 |  | }
26 |  |
27 | 0 | public Tokenizer getTokenizer() {
28 | 0 | return tokenizer;
29 |  | }
30 |  |
31 | 0 | public FilenameFilter getFileFilter() {
32 | 0 | return new SourceFileOrDirectoryFilter(sourceFileSelector);
33 |  | }
34 |  | }