public static class MethodRegistry.Default extends Object implements MethodRegistry
MethodRegistry.Default, MethodRegistry.LatentMethodMatcher
Constructor and Description |
---|
Default()
Creates a new empty method registry.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
append(MethodRegistry.LatentMethodMatcher latentMethodMatcher,
Instrumentation instrumentation,
MethodAttributeAppender.Factory attributeAppenderFactory)
Creates a new method registry with a new compilable entry representing the arguments of this method call.
|
MethodRegistry.Compiled |
compile(InstrumentedType instrumentedType,
MethodLookupEngine methodLookupEngine,
Instrumentation.Target.Factory instrumentationTargetFactory,
TypeWriter.MethodPool.Entry fallback)
Once all entries for a method registry were registered, a method registry can be compiled in order to allow the
retrieval of a compiled entry for a known method.
|
boolean |
equals(Object other) |
int |
hashCode() |
MethodRegistry |
prepend(MethodRegistry.LatentMethodMatcher latentMethodMatcher,
Instrumentation instrumentation,
MethodAttributeAppender.Factory attributeAppenderFactory)
Creates a new method registry with a new compilable entry representing the arguments of this method call.
|
String |
toString() |
public MethodRegistry append(MethodRegistry.LatentMethodMatcher latentMethodMatcher, Instrumentation instrumentation, MethodAttributeAppender.Factory attributeAppenderFactory)
MethodRegistry
append
in interface MethodRegistry
latentMethodMatcher
- A latent method matcher that represents this method matching.instrumentation
- The instrumentation that is responsible for implementing this method.attributeAppenderFactory
- The attribute appender factory that is responsible for implementing this method.public MethodRegistry prepend(MethodRegistry.LatentMethodMatcher latentMethodMatcher, Instrumentation instrumentation, MethodAttributeAppender.Factory attributeAppenderFactory)
MethodRegistry
prepend
in interface MethodRegistry
latentMethodMatcher
- A latent method matcher that represents this method matching.instrumentation
- The instrumentation that is responsible for implementing this method.attributeAppenderFactory
- The attribute appender factory that is responsible for implementing this method.public MethodRegistry.Compiled compile(InstrumentedType instrumentedType, MethodLookupEngine methodLookupEngine, Instrumentation.Target.Factory instrumentationTargetFactory, TypeWriter.MethodPool.Entry fallback)
MethodRegistry
compile
in interface MethodRegistry
instrumentedType
- The instrumented type for which this field registry is to be compiled.methodLookupEngine
- The method lookup engine to be used for analyzing the instrumented type.instrumentationTargetFactory
- A factory for creating an Instrumentation.Target
.fallback
- The fallback field attribute appender factory that serves as a fallback for unknown methods.Copyright © 2014. All rights reserved.