/** * Increments the counters by the values given by the collection of * elements. * * @param children * list of nodes, which counters will be added to this node */ public void increment(final Collection<? extends ICoverageNode> children) { for (final ICoverageNode child : children) { increment(child); } }
private void finalizeLastChild() throws IOException { if (lastChild != null) { lastChild.visitEnd(); total.increment(lastChild.total); lastChild = null; } }
public void putFragmentRoot(IPackageFragmentRoot fragmentroot, IBundleCoverage coverage) { coveragemap.put(fragmentroot, coverage); fragmentroots.add(fragmentroot); getProjectCoverage(fragmentroot.getJavaProject()).increment(coverage); }
public final void visitBundle(final IBundleCoverage bundle, final ISourceFileLocator locator) throws IOException { finalizeLastChild(); total.increment(bundle); handleBundle(bundle, locator); }