aboutsummaryrefslogtreecommitdiffstats
path: root/org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2009-06-13 08:35:21 +0000
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2009-06-13 08:35:21 +0000
commit77f5b12254452a71bcfb1f0db9d6b928b60eb600 (patch)
treee923b4536a0e6a868e35548dc9b6d062c7ef045e /org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java
parent7327888866ff15c01e1ae308137ade800f181989 (diff)
downloadplatform_external_jacoco-77f5b12254452a71bcfb1f0db9d6b928b60eb600.tar.gz
platform_external_jacoco-77f5b12254452a71bcfb1f0db9d6b928b60eb600.tar.bz2
platform_external_jacoco-77f5b12254452a71bcfb1f0db9d6b928b60eb600.zip
Using the AMS naming pattern for visitor interfaces.
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java b/org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java
new file mode 100644
index 00000000..b99f1b00
--- /dev/null
+++ b/org.jacoco.core/src/org/jacoco/core/data/IExecutionDataVisitor.java
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Mountainminds GmbH & Co. KG and others
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Marc R. Hoffmann - initial API and implementation
+ *
+ * $Id: $
+ *******************************************************************************/
+package org.jacoco.core.data;
+
+/**
+ * Interface for data output of collected execution data. This interface is
+ * meant to be implemented by parties that want to retrieve data from the
+ * coverage runtime.
+ *
+ * @author Marc R. Hoffmann
+ * @version $Revision: $
+ */
+public interface IExecutionDataVisitor {
+
+ /**
+ * Provides execution data for the class with the given id. The first
+ * dimension of the array corresponds to the method id the second to the
+ * block id as provided with the structure data for this class. A value of
+ * <code>true</code> indicates that a block has been executed, i.e. its last
+ * instruction was called.
+ *
+ * @param id
+ * id of the instrumented class
+ * @param blockdata
+ * coverage data for the class
+ */
+ public void visitClassExecution(long id, boolean[][] blockdata);
+
+ /**
+ * Signals the end of execution data output.
+ */
+ public void visitEnd();
+
+}