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 java.lang.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 net.bytebuddy.matcher.LatentMatcher
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>
-
-
Field Summary
Fields Modifier and Type Field Description private LatentMatcher<? super MethodDescription>
ignoredMethods
A matcher for the ignored methods.
-
Constructor Summary
Constructors Modifier Constructor Description protected
InstrumentableMatcher(LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a latent method matcher that matches all methods that are to be instrumented by aSubclassDynamicTypeBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementMatcher<? super MethodDescription>
resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
-
-
-
Field Detail
-
ignoredMethods
private final LatentMatcher<? super MethodDescription> ignoredMethods
A matcher for the ignored methods.
-
-
Constructor Detail
-
InstrumentableMatcher
protected InstrumentableMatcher(LatentMatcher<? super MethodDescription> ignoredMethods)
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 Detail
-
resolve
public ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolve
in interfaceLatentMatcher<MethodDescription>
- Parameters:
typeDescription
- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcher
that represents this matcher's resolved form.
-
-