summaryrefslogtreecommitdiff
path: root/core/java12/com/vladium/emma/data/ICoverageData.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java12/com/vladium/emma/data/ICoverageData.java')
-rw-r--r--core/java12/com/vladium/emma/data/ICoverageData.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/core/java12/com/vladium/emma/data/ICoverageData.java b/core/java12/com/vladium/emma/data/ICoverageData.java
new file mode 100644
index 0000000..c7476c0
--- /dev/null
+++ b/core/java12/com/vladium/emma/data/ICoverageData.java
@@ -0,0 +1,49 @@
+/* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under
+ * the terms of the Common Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * $Id: ICoverageData.java,v 1.1.1.1 2004/05/09 16:57:31 vlad_r Exp $
+ */
+package com.vladium.emma.data;
+
+// ----------------------------------------------------------------------------
+/**
+ * @author Vlad Roubtsov, (C) 2003
+ */
+public
+interface ICoverageData extends IMergeable
+{
+ // public: ................................................................
+
+ final class DataHolder
+ {
+ public DataHolder (final boolean [][] coverage, final long stamp)
+ {
+ m_coverage = coverage;
+ m_stamp = stamp;
+ }
+
+ public final boolean [][] m_coverage;
+ public final long m_stamp;
+
+ } // end of nested class
+
+ Object lock ();
+
+ ICoverageData shallowCopy ();
+
+ int size ();
+
+ /**
+ * can return null
+ * can return data holder with a different version stamp than cls.getStamp()
+ */
+ DataHolder getCoverage (ClassDescriptor cls);
+
+ //void setImmutable (); // TODO: this only disables addClass(), not coverage array updates; rename
+ void addClass (boolean [][] coverage, String classVMName, long stamp);
+
+} // end of interface
+// ---------------------------------------------------------------------------- \ No newline at end of file