protected static class MethodRegistry.Default.Entry extends Object implements LatentMethodMatcher
LatentMethodMatcher.ForToken, LatentMethodMatcher.Resolved
Modifier | Constructor and Description |
---|---|
protected |
Entry(LatentMethodMatcher methodMatcher,
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 latent method matcher.
|
String |
toString() |
protected Entry(LatentMethodMatcher methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodTransformer methodTransformer)
methodMatcher
- 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)
LatentMethodMatcher
resolve
in interface LatentMethodMatcher
instrumentedType
- The instrumented type.Copyright © 2014–2015. All rights reserved.