@HashCodeAndEqualsPlugin.Enhance protected static class MethodRegistry.Default.Entry extends Object implements LatentMatcher<MethodDescription>
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>
Modifier | Constructor and Description |
---|---|
protected |
Entry(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
Transformer<MethodDescription> transformer)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
protected MethodRegistry.Default.Prepared.Entry |
asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> methodTypes,
Visibility visibility)
Transforms this entry into a prepared state.
|
protected MethodRegistry.Default.Prepared.Entry |
asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription,
Visibility visibility)
Transforms this entry into a prepared state.
|
protected MethodRegistry.Default.Prepared.Entry |
asSupplementaryEntry(MethodDescription methodDescription)
Returns a prepared entry for a supplementary method.
|
protected MethodRegistry.Handler |
getHandler()
Returns this entry's handler.
|
ElementMatcher<? super MethodDescription> |
resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
protected Entry(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
matcher
- The latent method matcher that this entry represents.handler
- The handler to apply to all matched entries.attributeAppenderFactory
- A method attribute appender factory to apply to all entries.transformer
- The method transformer to be applied to implemented methods.protected MethodRegistry.Default.Prepared.Entry asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription, Visibility visibility)
instrumentedType
- The instrumented type.methodDescription
- The non-transformed method to be implemented.visibility
- The represented method's minimum visibility.protected MethodRegistry.Default.Prepared.Entry asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription, Set<MethodDescription.TypeToken> methodTypes, Visibility visibility)
instrumentedType
- The instrumented type.methodDescription
- The non-transformed method to be implemented.methodTypes
- The method types this method represents.visibility
- The represented method's minimum visibility.protected MethodRegistry.Default.Prepared.Entry asSupplementaryEntry(MethodDescription methodDescription)
methodDescription
- The method to be implemented.protected MethodRegistry.Handler getHandler()
public ElementMatcher<? super MethodDescription> resolve(TypeDescription typeDescription)
resolve
in interface LatentMatcher<MethodDescription>
typeDescription
- The type description for which the represented matcher should be resolved.ElementMatcher
that represents this matcher's resolved form.Copyright © 2014–2020. All rights reserved.