View Javadoc

1   package net.sf.mavenhist.extractor.cobertura;
2   
3   /**
4    * Extracts the lines of code. Only lines counting for the coverage are counted.
5    * That means only lines with statements are in here.
6    */
7   public class CoberturaLinesOfCodeExtractor extends AbstractCoberturaSingleValueExtractor {
8     
9     /**
10     * {@inheritDoc}
11     */
12    protected String getXPath(String version) {
13      return "count(coverage/packages/package/classes/class/lines/line)";
14    }
15    
16    /**
17     * {@inheritDoc}
18     */
19    public String getName() {
20      return "coberturaloc";
21    }
22  }