Class HashCodeMethod.OffsetProvider.ForFixedValue

    • Field Detail

      • value

        private final int value
        The value to load onto the operand stack.
    • Constructor Detail

      • ForFixedValue

        protected ForFixedValue​(int value)
        Creates a new offset provider for a fixed value.
        Parameters:
        value - The value to load onto the operand stack.
    • Method Detail

      • resolve

        public StackManipulation resolve​(TypeDescription instrumentedType)
        Resolves this offset provider for a given instrumented type.
        Specified by:
        resolve in interface HashCodeMethod.OffsetProvider
        Parameters:
        instrumentedType - The instrumented type.
        Returns:
        A stack manipulation that loads the initial hash code onto the operand stack.