Class Advice.Dispatcher.Delegating.Resolved<T extends Advice.Dispatcher.Bound>

    • Constructor Detail

      • Resolved

        protected Resolved​(MethodDescription.InDefinedShape adviceMethod,
                           java.util.List<? extends Advice.OffsetMapping.Factory<?>> factories,
                           TypeDescription throwableType)
        Creates a new resolved version of a dispatcher.
        Parameters:
        adviceMethod - The represented advice method.
        factories - A list of factories to resolve for the parameters of the advice method.
        throwableType - The type to handle by a suppression handler or Advice.NoExceptionHandler to not handle any exceptions.
    • Method Detail

      • isAlive

        public boolean isAlive()
        Description copied from interface: Advice.Dispatcher
        Returns true if this dispatcher is alive.
        Specified by:
        isAlive in interface Advice.Dispatcher
        Returns:
        true if this dispatcher is alive.
      • resolve

        protected abstract T resolve​(TypeDescription instrumentedType,
                                     MethodDescription instrumentedMethod,
                                     org.objectweb.asm.MethodVisitor methodVisitor,
                                     Implementation.Context implementationContext,
                                     Assigner assigner,
                                     Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
                                     Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
                                     StackManipulation exceptionHandler)
        Binds this dispatcher for resolution to a specific method.
        Parameters:
        instrumentedType - A description of the instrumented type.
        instrumentedMethod - The instrumented method that is being bound.
        methodVisitor - The method visitor for writing to the instrumented method.
        implementationContext - The implementation context to use.
        assigner - The assigner to use.
        methodSizeHandler - A handler for computing the method size requirements.
        stackMapFrameHandler - A handler for translating and injecting stack map frames.
        exceptionHandler - The stack manipulation to apply within a suppression handler.
        Returns:
        An appropriate bound advice dispatcher.
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object