Home | History | Annotate | Download | only in analysis
      1 /*******************************************************************************
      2  * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors
      3  * All rights reserved. This program and the accompanying materials
      4  * are made available under the terms of the Eclipse Public License v1.0
      5  * which accompanies this distribution, and is available at
      6  * http://www.eclipse.org/legal/epl-v10.html
      7  *
      8  * Contributors:
      9  *    Marc R. Hoffmann - initial API and implementation
     10  *
     11  *******************************************************************************/
     12 package org.jacoco.core.analysis;
     13 
     14 import java.util.Collection;
     15 
     16 /**
     17  * Coverage data of a Java package containing classes and source files. The name
     18  * of this node is the package name in VM notation (slash separated). The name
     19  * of the default package is the empty string.
     20  *
     21  * @see IClassCoverage
     22  * @see ISourceFileCoverage
     23  */
     24 public interface IPackageCoverage extends ICoverageNode {
     25 
     26 	/**
     27 	 * Returns all classes contained in this package.
     28 	 *
     29 	 * @return all classes
     30 	 */
     31 	public Collection<IClassCoverage> getClasses();
     32 
     33 	/**
     34 	 * Returns all source files in this package.
     35 	 *
     36 	 * @return all source files
     37 	 */
     38 	public Collection<ISourceFileCoverage> getSourceFiles();
     39 
     40 }