public static class JunctionMethodMatcher.Disjunction extends JunctionMethodMatcher.AbstractBase
true
if either of two method matchers
matches a given method.JunctionMethodMatcher.AbstractBase, JunctionMethodMatcher.Conjunction, JunctionMethodMatcher.Disjunction
Constructor and Description |
---|
Disjunction(MethodMatcher left,
MethodMatcher right)
Creates a new disjunction method matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(MethodDescription methodDescription)
Determines if a method matches for this
MethodMatcher . |
String |
toString() |
and, or
public Disjunction(MethodMatcher left, MethodMatcher right)
left
- The first method matcher to combine within this disjunction.right
- The second method matcher to combine within this disjunction.public boolean matches(MethodDescription methodDescription)
MethodMatcher
MethodMatcher
.methodDescription
- The method description to be matched.true
if the matcher is matching this method.Copyright © 2014. All rights reserved.