KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mountainminds > eclemma > core > analysis > IJavaElementCoverage


1 /*******************************************************************************
2  * Copyright (c) 2006 Mountainminds GmbH & Co. KG
3  * This software is provided under the terms of the Eclipse Public License v1.0
4  * See http://www.eclipse.org/legal/epl-v10.html.
5  *
6  * $Id: IJavaElementCoverage.java 174 2006-11-19 16:22:19Z mtnminds $
7  ******************************************************************************/

8 package com.mountainminds.eclemma.core.analysis;
9
10 /**
11  * Coverage data for a Java model element. This interface is not intended to be
12  * implemented or extended by clients.
13  *
14  * @author Marc R. Hoffmann
15  * @version $Revision: 174 $
16  */

17 public interface IJavaElementCoverage {
18
19   /**
20    * Returns line coverage details if the corresponding Java element is a
21    * compilation unit, type or method.
22    *
23    * @return {@link ILineCoverage} object or <code>null</code>
24    */

25   public ILineCoverage getLineCoverage();
26
27   /**
28    * Returns the counter for blocks.
29    *
30    * @return counter for blocks
31    */

32   public ICounter getBlockCounter();
33
34   /**
35    * Returns the counter for lines.
36    *
37    * @return counter for lines
38    */

39   public ICounter getLineCounter();
40
41   /**
42    * Returns the counter for methods.
43    *
44    * @return counter for methods
45    */

46   public ICounter getMethodCounter();
47   
48   /**
49    * Returns the counter for types.
50    *
51    * @return counter for types
52    */

53   public ICounter getTypeCounter();
54   
55   /**
56    * Returns the counter for instructions.
57    *
58    * @return counter for instructions
59    */

60   public ICounter getInstructionCounter();
61
62   /**
63    * Returns the modification stamp of the underlying resource. This can be used
64    * by clients to check whether the current version of the respective resource
65    * is identical to the version that was used for the coverage session.
66    *
67    * @return modification stamp of the underlying resource
68    */

69   public long getResourceModificationStamp();
70
71 }
72
Popular Tags