@HashCodeAndEqualsPlugin.Enhance public static class HashCodeMethod.NullValueGuard.UsingJump extends java.lang.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 and Type | Field and Description |
---|---|
private static java.lang.Object[] |
EMPTY
An empty array.
|
private MethodDescription |
instrumentedMethod
The instrumented method.
|
private static java.lang.Object[] |
INTEGER
An array that only contains an integer stack map frame.
|
private org.objectweb.asm.Label |
label
A label to indicate the target of a jump.
|
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.
|
private static final java.lang.Object[] EMPTY
private static final java.lang.Object[] INTEGER
private final MethodDescription instrumentedMethod
private final org.objectweb.asm.Label label
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