@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegationBinder.ParameterBinding.Anonymous extends Object implements MethodDelegationBinder.ParameterBinding<Object>
MethodDelegationBinder.ParameterBinding.Anonymous, MethodDelegationBinder.ParameterBinding.Illegal, MethodDelegationBinder.ParameterBinding.Unique<T>StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial| Constructor and Description |
|---|
Anonymous(StackManipulation delegate)
Creates a new, anonymous parameter binding.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
Object |
getIdentificationToken()
Returns an identification token for this binding.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
public Anonymous(StackManipulation delegate)
delegate - The stack manipulation that is responsible for loading the parameter value for this
target method parameter onto the stack.public Object getIdentificationToken()
getIdentificationToken in interface MethodDelegationBinder.ParameterBinding<Object>public boolean isValid()
isValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
apply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2025. All rights reserved.