public interface JunctionMethodMatcher extends MethodMatcher
MethodMatcher
that allows to compose
a method matcher with another one.Modifier and Type | Interface and Description |
---|---|
static class |
JunctionMethodMatcher.AbstractBase
An abstract base implementation of a junction method matcher.
|
static class |
JunctionMethodMatcher.Conjunction
A conjunction implementation of a method matcher that returns
true if both method matchers match
a given method. |
static class |
JunctionMethodMatcher.Disjunction
A disjunction implementation of a method matcher that returns
true if either of two method matchers
matches a given method. |
Modifier and Type | Method and Description |
---|---|
JunctionMethodMatcher |
and(MethodMatcher other)
Creates a new method matcher that returns
true if both this method matcher and the given
method matcher match a given method description. |
JunctionMethodMatcher |
or(MethodMatcher other)
Creates a new method matcher that returns
true if either this method matcher or the given
method matcher match a given method description. |
matches
JunctionMethodMatcher and(MethodMatcher other)
true
if both this method matcher and the given
method matcher match a given method description.other
- The method matcher to compose with this method matcher.true
if both this or the other
method matcher returns true.JunctionMethodMatcher or(MethodMatcher other)
true
if either this method matcher or the given
method matcher match a given method description.other
- The method matcher to compose with this method matcher.true
if either this or the other
method matcher returns true.Copyright © 2014. All rights reserved.