hudson.plugins.jdepend
Class JDependParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.codehaus.mojo.jdepend.JDependXMLReportParser
hudson.plugins.jdepend.JDependParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class JDependParser
- extends org.codehaus.mojo.jdepend.JDependXMLReportParser
- Author:
- cflewis
| Fields inherited from class org.codehaus.mojo.jdepend.JDependXMLReportParser |
buffer, cyclePackage, cycles, jdpackage, packages, stack, stats |
|
Constructor Summary |
JDependParser(File xmlFile)
An extension from the Codehaus JDependXMLReportParser
to allow custom methods to be added. |
|
Method Summary |
List<?> |
getCycles()
Returns the cycles from the parser object, required for the
Codehaus HTML outputter to work. |
protected String |
getTotalClasses()
Counts the total number of classes in all packages in the parser. |
| Methods inherited from class org.codehaus.mojo.jdepend.JDependXMLReportParser |
characters, endElement, getPackages, getStats, startElement |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDependParser
public JDependParser(File xmlFile)
throws ParserConfigurationException,
SAXException,
IOException
- An extension from the Codehaus JDependXMLReportParser
to allow custom methods to be added.
- Parameters:
xmlFile -
- Throws:
ParserConfigurationException
SAXException
IOException
getTotalClasses
protected String getTotalClasses()
- Counts the total number of classes in all packages in the parser.
This would work better if it cached the result.
- Parameters:
packages -
- Returns:
- The total number of classes parsed.
getCycles
public List<?> getCycles()
- Returns the cycles from the parser object, required for the
Codehaus HTML outputter to work.
- Returns:
- cycles (not really sure what this even is!)
Copyright © 2009-2013 Hudson. All Rights Reserved.