Delegate class for running Scent and converting the collected metrics to XML. This class encapsulates all dependencies on the Scent library, making it possible to easily control when those classes are first referenced and loaded.
| Type | Name and description |
|---|---|
groovy.util.Node |
collectMetricsAsXml(java.util.Collection<java.io.File> pFiles, java.nio.charset.Charset pCharset)Scan the directories and files in a collection of Java files, collect source code metrics for them, and return an XML representation of the collected metrics. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Scan the directories and files in a collection of Java files, collect source code metrics for them, and return an XML representation of the collected metrics.
pFiles - The files and/or directories to collect Java file metrics from.pCharset - The charset the Java files are encoded with.Node with the collected metrics, never null.