aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core/src/org/jacoco/core/internal/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core/src/org/jacoco/core/internal/analysis')
-rw-r--r--org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/AbstractMatcher.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/AbstractMatcher.java b/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/AbstractMatcher.java
index e239a732..c27c4e92 100644
--- a/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/AbstractMatcher.java
+++ b/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/AbstractMatcher.java
@@ -71,6 +71,11 @@ abstract class AbstractMatcher {
cursor = null;
}
+ /**
+ * Moves {@link #cursor} to next instruction if it is
+ * <code>INVOKEVIRTUAL</code> with given owner and name, otherwise sets it
+ * to <code>null</code>.
+ */
final void nextIsInvokeVirtual(final String owner, final String name) {
nextIs(Opcodes.INVOKEVIRTUAL);
if (cursor == null) {
@@ -83,6 +88,11 @@ abstract class AbstractMatcher {
cursor = null;
}
+ /**
+ * Moves {@link #cursor} to next instruction if it is
+ * <code>INVOKESTATIC</code> with given owner and name, otherwise sets it to
+ * <code>null</code>.
+ */
final void nextIsInvokeStatic(final String owner, final String name) {
nextIs(Opcodes.INVOKESTATIC);
if (cursor == null) {