Class EqualsMethod.NullValueGuard.UsingJump

    • Field Detail

      • EMPTY

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

        private static final java.lang.Object[] REFERENCE
        An array containing a single reference value.
      • instrumentedMethod

        private final MethodDescription instrumentedMethod
        The instrumented method.
      • firstValueNull

        private final org.objectweb.asm.Label firstValueNull
        The label to jump to if the first value is null whereas the second value is not null.
      • secondValueNull

        private final org.objectweb.asm.Label secondValueNull
        The label to jump to if the second value is null.
      • endOfBlock

        private final org.objectweb.asm.Label endOfBlock
        A label indicating the end of the null-guarding block.
    • 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 EqualsMethod.NullValueGuard
        Returns:
        The required padding for the local variable array to apply this guard.