@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegation.ImplementationDelegate.ForMethodReturn extends Object implements MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.Compiled, MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForMethodReturn, MethodDelegation.ImplementationDelegate.ForStaticMethodInstrumentedType.Prepareable.NoOpFIELD_NAME_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
ForMethodReturn(String name,
MethodGraph.Compiler methodGraphCompiler,
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.
|
protected ForMethodReturn(String name, MethodGraph.Compiler methodGraphCompiler, 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.ImplementationDelegateinstrumentedType - The instrumented type.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare in interface InstrumentedType.PrepareableinstrumentedType - The instrumented type in its current form.Copyright © 2014–2023. All rights reserved.