Package net.bytebuddy.implementation
Interface HashCodeMethod.OffsetProvider
-
- All Known Implementing Classes:
HashCodeMethod.OffsetProvider.ForDynamicTypeHash,HashCodeMethod.OffsetProvider.ForFixedValue,HashCodeMethod.OffsetProvider.ForStaticTypeHash,HashCodeMethod.OffsetProvider.ForSuperMethodCall
- Enclosing class:
- HashCodeMethod
protected static interface HashCodeMethod.OffsetProviderAn offset provider is responsible for supplying the initial hash code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHashCodeMethod.OffsetProvider.ForDynamicTypeHashAn offset provider that uses the instance's class's hash code.static classHashCodeMethod.OffsetProvider.ForFixedValueAn offset provider that supplies a fixed value.static classHashCodeMethod.OffsetProvider.ForStaticTypeHashAn offset provider that uses the instrumented type's class constant's hash code.static classHashCodeMethod.OffsetProvider.ForSuperMethodCallAn offset provider that invokes the super class'sObject.hashCode()implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackManipulationresolve(TypeDescription instrumentedType)Resolves this offset provider for a given instrumented type.
-
-
-
Method Detail
-
resolve
StackManipulation resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.- Parameters:
instrumentedType- The instrumented type.- Returns:
- A stack manipulation that loads the initial hash code onto the operand stack.
-
-