Clover coverage report - PMD - 3.7
Coverage timestamp: Wed May 31 2006 09:25:59 EDT
file stats: LOC: 22   Methods: 1
NCLOC: 12   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
Java15Parser.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   
 9    /**
 10    * Adapter for the JavaParser, using Java 1.5 grammar.
 11    *
 12    * @author Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be
 13    */
 14    public class Java15Parser implements Parser {
 15   
 16  18 public Object parse(Reader source) throws ParseException {
 17  18 JavaParser parser = new JavaParser(new JavaCharStream(source));
 18  18 parser.setJDK15();
 19  18 return parser.CompilationUnit();
 20    }
 21   
 22    }