Class SubclassDynamicTypeBuilder.InstrumentableMatcher
java.lang.Object
net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.InstrumentableMatcher
- All Implemented Interfaces:
LatentMatcher<MethodDescription>
- Enclosing class:
SubclassDynamicTypeBuilder<T>
@Enhance
protected static class SubclassDynamicTypeBuilder.InstrumentableMatcher
extends Object
implements LatentMatcher<MethodDescription>
A matcher that locates all methods that are overridable and not ignored or that are directly defined on the instrumented type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface LatentMatcher
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LatentMatcher<? super MethodDescription> A matcher for the ignored methods. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstrumentableMatcher(LatentMatcher<? super MethodDescription> ignoredMethods) Creates a latent method matcher that matches all methods that are to be instrumented by aSubclassDynamicTypeBuilder. -
Method Summary
Modifier and TypeMethodDescriptionElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.
-
Field Details
-
ignoredMethods
A matcher for the ignored methods.
-
-
Constructor Details
-
InstrumentableMatcher
Creates a latent method matcher that matches all methods that are to be instrumented by aSubclassDynamicTypeBuilder.- Parameters:
ignoredMethods- A matcher for the ignored methods.
-
-
Method Details
-
resolve
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolvein interfaceLatentMatcher<MethodDescription>- Parameters:
typeDescription- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcherthat represents this matcher's resolved form.
-