@HashCodeAndEqualsPlugin.Enhance public static class MethodDelegationBinder.ParameterBinding.Anonymous extends java.lang.Object implements MethodDelegationBinder.ParameterBinding<java.lang.Object>
MethodDelegationBinder.ParameterBinding.Anonymous, MethodDelegationBinder.ParameterBinding.Illegal, MethodDelegationBinder.ParameterBinding.Unique<T>StackManipulation.Compound, StackManipulation.Size, StackManipulation.Trivial| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object |
anonymousToken
A pseudo-token that is not exposed and therefore anonymous.
|
private StackManipulation |
delegate
The stack manipulation that represents the loading of the parameter binding onto the stack.
|
| Constructor and Description |
|---|
Anonymous(StackManipulation delegate)
Creates a new, anonymous parameter binding.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
java.lang.Object |
getIdentificationToken()
Returns an identification token for this binding.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
@HashCodeAndEqualsPlugin.ValueHandling(value=IGNORE) private final java.lang.Object anonymousToken
private final StackManipulation delegate
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 java.lang.Object getIdentificationToken()
getIdentificationToken in interface MethodDelegationBinder.ParameterBinding<java.lang.Object>public boolean isValid()
isValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(org.objectweb.asm.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.