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

file stats: | LOC: | 24 |  | Methods: | 3
| NCLOC: | 16 |  | Classes: | 2

Source file | Conditionals | Statements | Methods | TOTAL

CPPLanguage.java

-

0%

0%

0%

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 java.io.File;
7 |  | import java.io.FilenameFilter;
8 |  |
9 |  | public class CPPLanguage implements Language {
10 |  |
11 |  | public static class CPPFileOrDirectoryFilter implements FilenameFilter {
12 | 0 | public boolean accept(File dir, String filename) {
13 | 0 | return filename.endsWith(".h") || filename.endsWith(".c") || filename.endsWith(".cpp") || filename.endsWith(".cxx") || filename.endsWith(".cc") || (new File(dir.getAbsolutePath() + System.getProperty("file.separator") + filename).isDirectory());
14 |  | }
15 |  | }
16 |  |
17 | 0 | public Tokenizer getTokenizer() {
18 | 0 | return new CPPTokenizer();
19 |  | }
20 |  |
21 | 0 | public FilenameFilter getFileFilter() {
22 | 0 | return new CPPFileOrDirectoryFilter();
23 |  | }
24 |  | }