Top Description Fields Constructors Methods
net.bytebuddy.dynamic.scaffold.inline

public Class InliningImplementationMatcher

extends Object
implements LatentMatcher<MethodDescription>
Class Inheritance
All Implemented Interfaces
net.bytebuddy.matcher.LatentMatcher
Annotations
@Enhance
Imports
net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.description.method.MethodDescription, net.bytebuddy.description.type.TypeDescription, net.bytebuddy.matcher.ElementMatcher, .ElementMatchers, .LatentMatcher

A latent method matcher that identifies methods to instrument when redefining or rebasing a type.

Field Summary

Modifier and TypeField and Description
private final LatentMatcher<? super MethodDescription>
ignoredMethods

A method matcher that matches any ignored method.

private final ElementMatcher<? super MethodDescription>
predefinedMethodSignatures

A method matcher that matches any predefined method.

Constructor Summary

AccessConstructor and Description
protected
InliningImplementationMatcher(LatentMatcher<? super MethodDescription>
A method matcher that matches any ignored method.
ignoredMethods
,
ElementMatcher<? super MethodDescription>
A method matcher that matches any predefined method.
predefinedMethodSignatures
)

Creates a new inline implementation matcher.

Method Summary

Modifier and TypeMethod and Description
protected static LatentMatcher<MethodDescription>

Returns:

A latent method matcher that identifies any method to instrument for a rebasement or redefinition.
of
(LatentMatcher<? super MethodDescription>
A method matcher that matches any ignored method.
ignoredMethods
,
TypeDescription
The original type of the instrumentation before adding any user methods.
originalType
)

Creates a matcher where only overridable or declared methods are matched unless those are ignored.

public ElementMatcher<? super MethodDescription>
resolve(TypeDescription
The type description for which the represented matcher should be resolved.
typeDescription
)

Implements net.bytebuddy.matcher.LatentMatcher.resolve.

Resolves the element matcher this instance represents for the supplied type description.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ignoredMethodsback to summary
private final LatentMatcher<? super MethodDescription> ignoredMethods

A method matcher that matches any ignored method.

predefinedMethodSignaturesback to summary
private final ElementMatcher<? super MethodDescription> predefinedMethodSignatures

A method matcher that matches any predefined method.

Constructor Detail

InliningImplementationMatcherback to summary
protected InliningImplementationMatcher(LatentMatcher<? super MethodDescription> ignoredMethods, ElementMatcher<? super MethodDescription> predefinedMethodSignatures)

Creates a new inline implementation matcher.

Parameters
ignoredMethods:LatentMatcher<? super MethodDescription>

A method matcher that matches any ignored method.

predefinedMethodSignatures:ElementMatcher<? super MethodDescription>

A method matcher that matches any predefined method.

Method Detail

ofback to summary
protected static LatentMatcher<MethodDescription> of(LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType)

Creates a matcher where only overridable or declared methods are matched unless those are ignored. Methods that are declared by the target type are only matched if they are not ignored. Declared methods that are not found on the target type are always matched.

Parameters
ignoredMethods:LatentMatcher<? super MethodDescription>

A method matcher that matches any ignored method.

originalType:TypeDescription

The original type of the instrumentation before adding any user methods.

Returns:LatentMatcher<MethodDescription>

A latent method matcher that identifies any method to instrument for a rebasement or redefinition.

resolveback to summary
public ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)

Implements net.bytebuddy.matcher.LatentMatcher.resolve.

Doc from net.bytebuddy.matcher.LatentMatcher.resolve.

Resolves the element matcher this instance represents for the supplied type description.

Parameters
typeDescription:TypeDescription

The type description for which the represented matcher should be resolved.

Returns:ElementMatcher<? super MethodDescription>

An ElementMatcher that represents this matcher's resolved form.