aboutsummaryrefslogtreecommitdiffstats
path: root/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-05-19 22:01:33 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-05-19 22:01:33 -0700
commit8e37ff147009b16f4dd904bcc32714990e5cf22a (patch)
tree4378ac3ee1730f6cfbe0b9120f3d54e7570c86a0 /org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java
parent93068ff728a7916816e7bbf832b05c717a106c26 (diff)
parent0f0b5ebf8685e3b0544afa451e39e3fd3fbc304b (diff)
downloadplatform_external_jacoco-android10-mainline-networking-release.tar.gz
platform_external_jacoco-android10-mainline-networking-release.tar.bz2
platform_external_jacoco-android10-mainline-networking-release.zip
am: 0f0b5ebf86 Change-Id: Ice1512bc21409270a58b7542bce06745db99af6c
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java b/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java
new file mode 100644
index 00000000..8b97654d
--- /dev/null
+++ b/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/IFilterContext.java
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2009, 2019 Mountainminds GmbH & Co. KG and Contributors
+ * 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
+ *
+ *******************************************************************************/
+package org.jacoco.core.internal.analysis.filter;
+
+import java.util.Set;
+
+/**
+ * Context information provided to filters.
+ */
+public interface IFilterContext {
+
+ /**
+ * @return vm name of the enclosing class
+ */
+ String getClassName();
+
+ /**
+ * @return vm name of the super class of the enclosing class
+ */
+ String getSuperClassName();
+
+ /**
+ * @return vm names of the class annotations of the enclosing class
+ */
+ Set<String> getClassAnnotations();
+
+ /**
+ * @return file name of the corresponding source file or <code>null</code>
+ * if not available
+ */
+ String getSourceFileName();
+
+ /**
+ * @return value of SourceDebugExtension attribute or <code>null</code> if
+ * not available
+ */
+ String getSourceDebugExtension();
+
+}