protected static interface MemberSubstitution.Replacement
MemberSubstitution.Substitution and a way of choosing if this substitution should be applied for a discovered member.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MemberSubstitution.Replacement.Binding
A binding for a replacement of a field or method access within another method.
|
static interface |
MemberSubstitution.Replacement.Factory
A factory for creating a replacement for an instrumented method.
|
static class |
MemberSubstitution.Replacement.ForDynamicInvocation
A replacement that substitutes a invokedynamic instruction.
|
static class |
MemberSubstitution.Replacement.ForElementMatchers
A replacement that substitutes a member based on a row of element matchers.
|
static class |
MemberSubstitution.Replacement.ForFirstBinding
A replacement that only resolves the first matching replacement of a list of replacements.
|
static class |
MemberSubstitution.Replacement.InvocationType
Describes a method invocation type.
|
static class |
MemberSubstitution.Replacement.NoOp
A non-operational replacement.
|
| Modifier and Type | Method and Description |
|---|---|
MemberSubstitution.Replacement.Binding |
bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
JavaConstant.MethodHandle methodHandle,
JavaConstant.MethodType methodType,
String name,
List<JavaConstant> constants)
Binds this replacement for a dynamic method invocation that was discovered.
|
MemberSubstitution.Replacement.Binding |
bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypeDescription typeDescription,
FieldDescription fieldDescription,
boolean writeAccess)
Binds this replacement for a field that was discovered.
|
MemberSubstitution.Replacement.Binding |
bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypeDescription typeDescription,
MethodDescription methodDescription,
MemberSubstitution.Replacement.InvocationType invocationType)
Binds this replacement for a field that was discovered.
|
MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess)
instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.typeDescription - The type on which the field was read.fieldDescription - The field that was discovered.writeAccess - true if this field was written to.MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType)
instrumentedType - The instrumented type.FieldDescriptioninstrumentedMethod - The instrumented method.typeDescription - The type on which the method was invoked.methodDescription - The method that was discovered.invocationType - The invocation type for this method.MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants)
instrumentedType - The instrumented type.FieldDescriptioninstrumentedMethod - The instrumented method.methodHandle - The method handle of the bootstrap method.name - The name of the method that is bound.methodType - The type of the method that is bound.constants - The constant arguments to the bootstrap method.Copyright © 2014–2025. All rights reserved.