Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 27 |  | Methods: | 3
| NCLOC: | 18 |  | Classes: | 2
Source file | Conditionals | Statements | Methods | TOTAL
RubyLanguage.java | - | 0% | 0% | 0% |

1 |  | /**
2 |  | * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 |  | * @authors: Zev Blut zb@ubit.com
4 |  | */
5 |  | package net.sourceforge.pmd.cpd;
6 |  |
7 |  | import java.io.File;
8 |  | import java.io.FilenameFilter;
9 |  |
10 |  | public class RubyLanguage implements Language {
11 |  |
12 |  | public static class RubyFileOrDirectoryFilter implements FilenameFilter {
13 | 0 | public boolean accept(File dir, String filename) {
14 | 0 | return filename.endsWith("rb") || filename.endsWith("cgi") ||
15 |  | filename.endsWith("class") ||
16 |  | (new File(dir.getAbsolutePath() + fileSeparator + filename).isDirectory());
17 |  | }
18 |  | }
19 |  |
20 | 0 | public Tokenizer getTokenizer() {
21 | 0 | return new RubyTokenizer();
22 |  | }
23 |  |
24 | 0 | public FilenameFilter getFileFilter() {
25 | 0 | return new RubyFileOrDirectoryFilter();
26 |  | }
27 |  | }