org.jacoco.report.xml
Class MethodNode
java.lang.Object
org.jacoco.report.xml.XMLElement
org.jacoco.report.xml.NodeWithCoverage
org.jacoco.report.xml.MethodNode
- All Implemented Interfaces:
- IReportVisitor
public class MethodNode
- extends NodeWithCoverage
Wrapper for an XMLElement
that contains method coverage data
- Version:
- $Revision: $
- Author:
- Brock Janiczak
Constructor Summary |
MethodNode(ClassNode parent,
ICoverageNode methodNode)
Creates a new Method coverage element for the supplied package and class
coverage node |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodNode
public MethodNode(ClassNode parent,
ICoverageNode methodNode)
throws IOException
- Creates a new Method coverage element for the supplied package and class
coverage node
- Parameters:
parent
- Parent element that will own this class elementmethodNode
- Method coverage node
- Throws:
IOException
- IO Error creating the element
visitChild
public IReportVisitor visitChild(ICoverageNode node)
throws IOException
- Description copied from interface:
IReportVisitor
- Called for every direct child.
- Parameters:
node
- Node for the child in the implementation class specific to
this type. The counters are may yet be populated.
- Returns:
- visitor instance for processing the child node
- Throws:
IOException
- in case of IO problems with the report writer
getCounterEntities
protected ICoverageNode.CounterEntity[] getCounterEntities()
- Description copied from class:
NodeWithCoverage
- Retrieves the list of counters supported by this element
- Overrides:
getCounterEntities
in class NodeWithCoverage
- Returns:
- Counters supported by this element