@HashCodeAndEqualsPlugin.Enhance public static class HashCodeMethod.NullValueGuard.UsingJump extends Object implements HashCodeMethod.NullValueGuard
null
.Modifier and Type | Class and Description |
---|---|
protected class |
HashCodeMethod.NullValueGuard.UsingJump.AfterInstruction
The stack manipulation to apply after the hash value computation.
|
protected class |
HashCodeMethod.NullValueGuard.UsingJump.BeforeInstruction
The stack manipulation to apply before the hash value computation.
|
HashCodeMethod.NullValueGuard.NoOp, HashCodeMethod.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 a hash value.
|
StackManipulation |
before()
Returns a stack manipulation to apply before computing a hash value.
|
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 HashCodeMethod.NullValueGuard
public StackManipulation after()
after
in interface HashCodeMethod.NullValueGuard
public int getRequiredVariablePadding()
getRequiredVariablePadding
in interface HashCodeMethod.NullValueGuard
Copyright © 2014–2020. All rights reserved.