Package net.bytebuddy.matcher
Class LatentMatcher.Conjunction<S>
java.lang.Object
net.bytebuddy.matcher.LatentMatcher.Conjunction<S>
- Type Parameters:
S
- The type of the matched element.
- All Implemented Interfaces:
LatentMatcher<S>
- Enclosing interface:
LatentMatcher<T>
@Enhance
public static class LatentMatcher.Conjunction<S>
extends Object
implements LatentMatcher<S>
A matcher that computes the conjunction of all supplied latent matchers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.LatentMatcher
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends LatentMatcher<? super S>> The matchers this conjunction represents. -
Constructor Summary
ConstructorsConstructorDescriptionConjunction
(List<? extends LatentMatcher<? super S>> matchers) Creates a new conjunction of latent matchers.Conjunction
(LatentMatcher<? super S>... matcher) Creates a new conjunction of latent matchers. -
Method Summary
Modifier and TypeMethodDescriptionElementMatcher
<? super S> resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.
-
Field Details
-
matchers
The matchers this conjunction represents.
-
-
Constructor Details
-
Conjunction
Creates a new conjunction of latent matchers.- Parameters:
matcher
- The matchers this conjunction represents.
-
Conjunction
Creates a new conjunction of latent matchers.- Parameters:
matchers
- The matchers this conjunction represents.
-
-
Method Details
-
resolve
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolve
in interfaceLatentMatcher<S>
- Parameters:
typeDescription
- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcher
that represents this matcher's resolved form.
-