@HashCodeAndEqualsPlugin.Enhance public static class EqualsMethod.NullValueGuard.UsingJump extends Object implements EqualsMethod.NullValueGuard
null
but returns if
the invoked instance's field value is null
but not the compared instance's value.Modifier and Type | Class and Description |
---|---|
protected class |
EqualsMethod.NullValueGuard.UsingJump.AfterInstruction
The stack manipulation to apply after the equality computation.
|
protected class |
EqualsMethod.NullValueGuard.UsingJump.BeforeInstruction
The stack manipulation to apply before the equality computation.
|
EqualsMethod.NullValueGuard.NoOp, EqualsMethod.NullValueGuard.UsingJump
Modifier | Constructor and Description |
---|---|
protected |
UsingJump(MethodDescription instrumentedMethod)
Creates a new null value guard using a jump instruction for
null values. |
Modifier and Type | Method and Description |
---|---|
StackManipulation |
after()
Returns a stack manipulation to apply after computing equality.
|
StackManipulation |
before()
Returns a stack manipulation to apply before computing equality.
|
int |
getRequiredVariablePadding()
Returns the required padding for the local variable array to apply this guard.
|
protected UsingJump(MethodDescription instrumentedMethod)
null
values.instrumentedMethod
- The instrumented method.public StackManipulation before()
before
in interface EqualsMethod.NullValueGuard
public StackManipulation after()
after
in interface EqualsMethod.NullValueGuard
public int getRequiredVariablePadding()
getRequiredVariablePadding
in interface EqualsMethod.NullValueGuard
Copyright © 2014–2020. All rights reserved.