Package net.bytebuddy.implementation
Interface EqualsMethod.NullValueGuard
-
- All Known Implementing Classes:
EqualsMethod.NullValueGuard.NoOp,EqualsMethod.NullValueGuard.UsingJump
- Enclosing class:
- EqualsMethod
protected static interface EqualsMethod.NullValueGuardGuards a field value against a potentialnullvalue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEqualsMethod.NullValueGuard.NoOpA non-operational null value guard.static classEqualsMethod.NullValueGuard.UsingJumpA null value guard that expects a reference type and that skips the comparison if both values arenullbut returns if the invoked instance's field value isnullbut not the compared instance's value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulationafter()Returns a stack manipulation to apply after computing equality.StackManipulationbefore()Returns a stack manipulation to apply before computing equality.intgetRequiredVariablePadding()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.
-
-