Package net.bytebuddy.implementation
Interface EqualsMethod.NullValueGuard
-
- All Known Implementing Classes:
EqualsMethod.NullValueGuard.NoOp
,EqualsMethod.NullValueGuard.UsingJump
- Enclosing class:
- EqualsMethod
protected static interface EqualsMethod.NullValueGuard
Guards a field value against a potentialnull
value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EqualsMethod.NullValueGuard.NoOp
A non-operational null value guard.static class
EqualsMethod.NullValueGuard.UsingJump
A null value guard that expects a reference type and that skips the comparison if both values arenull
but returns if the invoked instance's field value isnull
but not the compared instance's value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
before
StackManipulation before()
Returns a stack manipulation to apply before computing equality.- Returns:
- A stack manipulation to apply before computing equality.
-
after
StackManipulation after()
Returns a stack manipulation to apply after computing equality.- Returns:
- A stack manipulation to apply after computing equality.
-
getRequiredVariablePadding
int getRequiredVariablePadding()
Returns the required padding for the local variable array to apply this guard.- Returns:
- The required padding for the local variable array to apply this guard.
-
-