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 potential
null
value.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A non-operational null value guard.static class
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
-
Method Details
-
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.
-