1 package net.sf.mavenhist.extractor.jncss; 2 3 /** 4 * Extracts the number of code fragments with a complexity higher than 15. 5 */ 6 public class JNCSSCCNExtractor extends AbstractJNCSSExtractor { 7 8 /** 9 * {@inheritDoc} 10 */ 11 protected String getXPath(String version) { 12 return "count(/javancss/functions/function/ccn[.>15])"; 13 } 14 15 /** 16 * {@inheritDoc} 17 */ 18 public String getName() { 19 return "javancssccn"; 20 } 21 }