Class HashCodeMethod.NullValueGuard.UsingJump

    • Field Detail

      • EMPTY

        private static final java.lang.Object[] EMPTY
        An empty array.
      • INTEGER

        private static final java.lang.Object[] INTEGER
        An array that only contains an integer stack map frame.
      • instrumentedMethod

        private final MethodDescription instrumentedMethod
        The instrumented method.
      • label

        private final org.objectweb.asm.Label label
        A label to indicate the target of a jump.
    • Constructor Detail

      • UsingJump

        protected UsingJump​(MethodDescription instrumentedMethod)
        Creates a new null value guard using a jump instruction for null values.
        Parameters:
        instrumentedMethod - The instrumented method.
    • Method Detail

      • getRequiredVariablePadding

        public int getRequiredVariablePadding()
        Returns the required padding for the local variable array to apply this guard.
        Specified by:
        getRequiredVariablePadding in interface HashCodeMethod.NullValueGuard
        Returns:
        The required padding for the local variable array to apply this guard.