Clover coverage report - PMD - 3.9
Coverage timestamp: Tue Dec 19 2006 09:38:44 EST
file stats: LOC: 34   Methods: 3
NCLOC: 22   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Java13Parser.java - 100% 100% 100%
coverage
 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    import java.util.Map;
 9   
 10    /**
 11    * Adapter for the JavaParser, using Java 1.3 grammar.
 12    *
 13    * @author Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be
 14    */
 15    public class Java13Parser implements Parser {
 16   
 17    private JavaParser parser;
 18    private String marker;
 19   
 20  1 public Object parse(Reader source) throws ParseException {
 21  1 parser = new JavaParser(new JavaCharStream(source));
 22  1 parser.setJDK13();
 23  1 parser.setExcludeMarker(marker);
 24  1 return parser.CompilationUnit();
 25    }
 26   
 27  1 public Map getExcludeMap() {
 28  1 return parser.getExcludeMap();
 29    }
 30   
 31  1 public void setExcludeMarker(String marker) {
 32  1 this.marker = marker;
 33    }
 34    }