@HashCodeAndEqualsPlugin.Enhance protected static class AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation extends java.lang.Object implements Implementation
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.LambdaInstrumentationStrategy.LambdaInstanceFactory.LambdaMethodImplementation.Appender
An appender for a lambda expression's functional method.
|
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
Modifier and Type | Field and Description |
---|---|
private JavaConstant.MethodType |
specializedLambdaMethod
The specialized type of the lambda method.
|
private JavaConstant.MethodHandle |
targetMethod
The handle of the target method of the lambda expression.
|
Modifier | Constructor and Description |
---|---|
protected |
LambdaMethodImplementation(JavaConstant.MethodHandle targetMethod,
JavaConstant.MethodType specializedLambdaMethod)
Creates a implementation of a lambda expression's functional method.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
private final JavaConstant.MethodHandle targetMethod
private final JavaConstant.MethodType specializedLambdaMethod
protected LambdaMethodImplementation(JavaConstant.MethodHandle targetMethod, JavaConstant.MethodType specializedLambdaMethod)
targetMethod
- The target method of the lambda expression.specializedLambdaMethod
- The specialized type of the lambda method.public ByteCodeAppender appender(Implementation.Target implementationTarget)
appender
in interface Implementation
implementationTarget
- The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType)
.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.