Predicates but compatible to Java 6 and Java 7 and represent
a functional interface. They can be chained by using instances of
org.easymock.bytebuddy.matcher.ElementMatcher.Junction .
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ElementMatcher.
The type of the object that is being matched. S>A junctions allows to chain different |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the given element is matched by this matcher or false otherwise.The instance to be matched or target)null.Matches a target against this element matcher. |
| matches | back to summary |
|---|---|
| public boolean matches(T target) Matches a target against this element matcher.
| |
org.easymock.bytebuddy.matcher.ElementMatcher s in a readable manner.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ElementMatcher.
The type of the object that is being matched. V>A base implementation of |
| public static class | ElementMatcher.
The type of the object that is being matched. W>A conjunction matcher which only matches an element if both represented matchers constitute a match. |
| public static class | ElementMatcher.
The type of the object that is being matched. W>A disjunction matcher which matches an element against matchers in order to constitute a successful match. |
| public abstract static class | ElementMatcher.
The type of the object that is being matched. W>An abstract base implementation that rejects null values. |
| Modifier and Type | Method and Description |
|---|---|
| public < The type of the object that is being matched. Note that Java's type inference might not
be able to infer the common subtype of this instance and the U extends S> ElementMatcher.other matcher such that
this type must need to be named explicitly. | Returns: A conjunction of this matcher and the other matcher.The second matcher to consult. other)Creates a conjunction where this matcher and the |
| public < The type of the object that is being matched. Note that Java's type inference might not
be able to infer the common subtype of this instance and the U extends S> ElementMatcher.other matcher such that
this type must need to be named explicitly. | Returns: A disjunction of this matcher and the other matcher.The second matcher to consult. other)Creates a disjunction where either this matcher or the |
| and | back to summary |
|---|---|
| public <U extends S> ElementMatcher. Creates a conjunction where this matcher and the
| |
| or | back to summary |
|---|---|
| public <U extends S> ElementMatcher. Creates a disjunction where either this matcher or the
| |
org.easymock.bytebuddy.matcher.ElementMatcher.Junction .
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <U extends V> ElementMatcher. | and(ElementMatcher<? super U>
The second matcher to consult. other)Implements org. other matcher must both be matched in order
to constitute a successful match.
|
| public <U extends V> ElementMatcher. | or(ElementMatcher<? super U>
The second matcher to consult. other)Implements org. other matcher must be matched in order
to constitute a successful match.
|
| AbstractBase | back to summary |
|---|---|
| public AbstractBase() | |
| and | back to summary |
|---|---|
| public <U extends V> ElementMatcher. Implements org. Doc from org. Creates a conjunction where this matcher and the
| |
| or | back to summary |
|---|---|
| public <U extends V> ElementMatcher. Implements org. Doc from org. Creates a disjunction where either this matcher or the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | matchers
The element matchers that constitute this conjunction. |
| Access | Constructor and Description |
|---|---|
| public | Conjunction(ElementMatcher<? super W>...
The represented matchers in application order. matcher)Creates a new conjunction matcher. |
| public | Conjunction(List<ElementMatcher<? super W>>
The represented matchers in application order. matchers)Creates a new conjunction matcher. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matches(W
The instance to be matched or target)null.Implements org. |
| public String |
| matchers | back to summary |
|---|---|
| private final List<ElementMatcher<? super W>> matchers The element matchers that constitute this conjunction. | |
| Conjunction | back to summary |
|---|---|
| public Conjunction(ElementMatcher<? super W>... matcher) Creates a new conjunction matcher.
| |
| Conjunction | back to summary |
|---|---|
| public Conjunction(List<ElementMatcher<? super W>> matchers) Creates a new conjunction matcher.
| |
| matches | back to summary |
|---|---|
| public boolean matches(W target) Implements org. Doc from org. Matches a target against this element matcher.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | matchers
The element matchers that constitute this disjunction. |
| Access | Constructor and Description |
|---|---|
| public | Disjunction(ElementMatcher<? super W>...
The represented matchers in application order. matcher)Creates a new disjunction matcher. |
| public | Disjunction(List<ElementMatcher<? super W>>
The represented matchers in application order. matchers)Creates a new disjunction matcher. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matches(W
The instance to be matched or target)null.Implements org. |
| public String |
| matchers | back to summary |
|---|---|
| private final List<ElementMatcher<? super W>> matchers The element matchers that constitute this disjunction. | |
| Disjunction | back to summary |
|---|---|
| public Disjunction(ElementMatcher<? super W>... matcher) Creates a new disjunction matcher.
| |
| Disjunction | back to summary |
|---|---|
| public Disjunction(List<ElementMatcher<? super W>> matchers) Creates a new disjunction matcher.
| |
| matches | back to summary |
|---|---|
| public boolean matches(W target) Implements org. Doc from org. Matches a target against this element matcher.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract boolean | Returns: true if the given element is matched by this matcher or false otherwise.The instance to be matched. target)Matches the supplied value if it was found not to be |
| public boolean | matches(W
The instance to be matched or target)null.Implements org. |
| ForNonNullValues | back to summary |
|---|---|
| public ForNonNullValues() | |
| doMatch | back to summary |
|---|---|
| protected abstract boolean doMatch(W target) Matches the supplied value if it was found not to be
| |
| matches | back to summary |
|---|---|
| public boolean matches(W target) Implements org. Doc from org. Matches a target against this element matcher.
| |