@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegation.ImplementationDelegate.ForMethodReturn extends java.lang.Object implements MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.Compiled, MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForMethodReturn, MethodDelegation.ImplementationDelegate.ForStaticMethod
Modifier and Type | Field and Description |
---|---|
private ElementMatcher<? super MethodDescription> |
matcher
The matcher to use for filtering methods.
|
private MethodGraph.Compiler |
methodGraphCompiler
The method graph compiler to use.
|
private java.lang.String |
name
The name of the method to invoke.
|
private java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> |
parameterBinders
The parameter binders to use.
|
FIELD_NAME_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
ForMethodReturn(java.lang.String name,
MethodGraph.Compiler methodGraphCompiler,
java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
ElementMatcher<? super MethodDescription> matcher)
Creates a new implementation delegate for a method return value delegation.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegation.ImplementationDelegate.Compiled |
compile(TypeDescription instrumentedType)
Compiles this implementation delegate.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
private final java.lang.String name
private final MethodGraph.Compiler methodGraphCompiler
private final java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders
private final ElementMatcher<? super MethodDescription> matcher
protected ForMethodReturn(java.lang.String name, MethodGraph.Compiler methodGraphCompiler, java.util.List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher)
name
- The name of the method to invoke.methodGraphCompiler
- The method graph compiler to use.parameterBinders
- The parameter binders to use.matcher
- The matcher to use for filtering methods.public MethodDelegation.ImplementationDelegate.Compiled compile(TypeDescription instrumentedType)
compile
in interface MethodDelegation.ImplementationDelegate
instrumentedType
- The instrumented type.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.