Interface LatentMatcher<T>
- Type Parameters:
T- The type of the matched element.
- All Known Implementing Classes:
FieldRegistry.Default.Entry, InliningImplementationMatcher, LatentMatcher.Conjunction, LatentMatcher.Disjunction, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved, MethodRegistry.Default.Entry, RecordComponentRegistry.Default.Entry, SubclassDynamicTypeBuilder.InstrumentableMatcher
public interface LatentMatcher<T>
A latent matcher that resolves an
ElementMatcher after supplying a type description.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA matcher that computes the conjunction of all supplied latent matchers.static classA matcher that computes the disjunction of all supplied latent matchers.static classA latent matcher where the field token is being attached to the supplied type description before matching.static classA latent matcher where the method token is being attached to the supplied type description before matching.static classA latent matcher for a record component token.static enumA latent matching methods that are declared by the resolved type.static classA latent matcher representing an already resolvedElementMatcher. -
Method Summary
Modifier and TypeMethodDescriptionElementMatcher<? super T> resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.
-
Method Details
-
resolve
Resolves the element matcher this instance represents for the supplied type description.- Parameters:
typeDescription- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcherthat represents this matcher's resolved form.
-