protected static class MethodRegistry.Default.Entry extends Object implements LatentMatcher<MethodDescription>
LatentMatcher.Compound<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.Resolved<S>
Modifier | Constructor and Description |
---|---|
protected |
Entry(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
protected MethodRegistry.Default.Prepared.Entry |
asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription)
Transforms this entry into a prepared state.
|
protected MethodRegistry.Default.Prepared.Entry |
asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> methodTypes)
Transforms this entry into a prepared state.
|
protected MethodRegistry.Default.Prepared.Entry |
asSupplementaryEntry(MethodDescription methodDescription)
Returns a prepared entry for a supplementary method.
|
boolean |
equals(Object other) |
protected MethodRegistry.Handler |
getHandler()
Returns this entry's handler.
|
int |
hashCode() |
ElementMatcher<? super MethodDescription> |
resolve(TypeDescription instrumentedType)
Resolves the element matcher this instance represents for the instrumented type.
|
String |
toString() |
protected Entry(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodTransformer methodTransformer)
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.methodTransformer
- The method transformer to be applied to implemented methods.protected MethodRegistry.Default.Prepared.Entry asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription)
instrumentedType
- The instrumented type.methodDescription
- The non-transformed method to be implemented.protected MethodRegistry.Default.Prepared.Entry asPreparedEntry(TypeDescription instrumentedType, MethodDescription methodDescription, Set<MethodDescription.TypeToken> methodTypes)
instrumentedType
- The instrumented type.methodDescription
- The non-transformed method to be implemented.methodTypes
- The method types this method represents.protected MethodRegistry.Default.Prepared.Entry asSupplementaryEntry(MethodDescription methodDescription)
methodDescription
- The method to be implemented.protected MethodRegistry.Handler getHandler()
public ElementMatcher<? super MethodDescription> resolve(TypeDescription instrumentedType)
LatentMatcher
resolve
in interface LatentMatcher<MethodDescription>
instrumentedType
- The instrumented type.ElementMatcher
that represents this matcher's resolved form.Copyright © 2014–2016. All rights reserved.