@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Replacement.Binding.ForDynamicInvocation extends Object implements MemberSubstitution.Replacement.Binding
MemberSubstitution.Replacement.Binding.ForDynamicInvocation, MemberSubstitution.Replacement.Binding.ForMember, MemberSubstitution.Replacement.Binding.Unresolved| Modifier | Constructor and Description |
|---|---|
protected |
ForDynamicInvocation(JavaConstant.MethodType methodType,
String name,
List<JavaConstant> arguments,
MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForDynamicInvocation> substitution)
Creates a resolved binding for an invokedynamic expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBound()
Returns
true if this binding is resolved. |
StackManipulation |
make(TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Creates a stack manipulation that represents the substitution.
|
protected ForDynamicInvocation(JavaConstant.MethodType methodType, String name, List<JavaConstant> arguments, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForDynamicInvocation> substitution)
methodType - The type of the lambda expression that is to be bound.name - The name of the lambda expression target.arguments - The constant arguments supplied to the bootstrap method.substitution - The substitution to apply.public boolean isBound()
true if this binding is resolved.isBound in interface MemberSubstitution.Replacement.Bindingtrue if this binding is resolved.public StackManipulation make(TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset)
make in interface MemberSubstitution.Replacement.Bindingparameters - The parameters that are accessible to the substitution target.result - The result that is expected from the substitution target or void if none is expected.methodHandle - A method handle that represents the original expression that is being substituted.stackManipulation - The original byte code expression that is being substituted.freeOffset - The first offset that can be used for storing local variables.Copyright © 2014–2025. All rights reserved.