Package net.bytebuddy.implementation
Class HashCodeMethod.OffsetProvider.ForFixedValue
- java.lang.Object
-
- net.bytebuddy.implementation.HashCodeMethod.OffsetProvider.ForFixedValue
-
- All Implemented Interfaces:
HashCodeMethod.OffsetProvider
- Enclosing interface:
- HashCodeMethod.OffsetProvider
@Enhance public static class HashCodeMethod.OffsetProvider.ForFixedValue extends java.lang.Object implements HashCodeMethod.OffsetProvider
An offset provider that supplies a fixed value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.HashCodeMethod.OffsetProvider
HashCodeMethod.OffsetProvider.ForFixedValue, HashCodeMethod.OffsetProvider.ForSuperMethodCall
-
-
Field Summary
Fields Modifier and Type Field Description private int
value
The value to load onto the operand stack.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForFixedValue(int value)
Creates a new offset provider for a fixed value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulation
resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.
-
-
-
Method Detail
-
resolve
public StackManipulation resolve(TypeDescription instrumentedType)
Resolves this offset provider for a given instrumented type.- Specified by:
resolve
in interfaceHashCodeMethod.OffsetProvider
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A stack manipulation that loads the initial hash code onto the operand stack.
-
-