@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Replacement.ForDynamicInvocation extends Object implements MemberSubstitution.Replacement
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MemberSubstitution.Replacement.ForDynamicInvocation.Factory
A factory for a replacement for an invokedynamic instruction.
|
MemberSubstitution.Replacement.Binding, MemberSubstitution.Replacement.ForDynamicInvocation, MemberSubstitution.Replacement.ForElementMatchers, MemberSubstitution.Replacement.ForFirstBinding, MemberSubstitution.Replacement.InvocationType, MemberSubstitution.Replacement.NoOp| Modifier | Constructor and Description |
|---|---|
protected |
ForDynamicInvocation(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher,
ElementMatcher.Junction<? super String> nameMatcher,
ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher,
ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher,
MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForDynamicInvocation> substitution)
Creates a replacement for an invokedynamic instruction.
|
| 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.
|
protected ForDynamicInvocation(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForDynamicInvocation> substitution)
handleMatcher - A matcher for an invokedynamic bootstrap method.nameMatcher - A matcher for an invokedynamic instruction's name.typeMatcher - A matcher for an invokedynamic instruction's result type.argumentsMatcher - A matcher for an invokedynamic instruction's constant arguments.substitution - The substitution to apply.public MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, FieldDescription fieldDescription, boolean writeAccess)
bind in interface MemberSubstitution.ReplacementinstrumentedType - 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.public MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypeDescription typeDescription, MethodDescription methodDescription, MemberSubstitution.Replacement.InvocationType invocationType)
bind in interface MemberSubstitution.ReplacementinstrumentedType - 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.public MemberSubstitution.Replacement.Binding bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, JavaConstant.MethodHandle methodHandle, JavaConstant.MethodType methodType, String name, List<JavaConstant> constants)
bind in interface MemberSubstitution.ReplacementinstrumentedType - The instrumented type.FieldDescriptioninstrumentedMethod - The instrumented method.methodHandle - The method handle of the bootstrap method.methodType - The type of the method that is bound.name - The name of the method that is bound.constants - The constant arguments to the bootstrap method.Copyright © 2014–2025. All rights reserved.