Class Advice.Dispatcher.Inlining

    • Field Detail

      • namedTypes

        private final java.util.Map<java.lang.String,​TypeDefinition> namedTypes
        A mapping of all available local variables by their name to their type.
    • Constructor Detail

      • Inlining

        protected Inlining​(MethodDescription.InDefinedShape adviceMethod)
        Creates a dispatcher for inlined advice method.
        Parameters:
        adviceMethod - The advice method.
    • Method Detail

      • isAlive

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

        public boolean isBinary()
        Indicates that this dispatcher requires access to the class file declaring the advice method.
        Specified by:
        isBinary in interface Advice.Dispatcher.Unresolved
        Returns:
        true if this dispatcher requires access to the advice method's class file.
      • getAdviceType

        public TypeDescription getAdviceType()
        The type that is produced as a result of executing this advice method.
        Specified by:
        getAdviceType in interface Advice.Dispatcher
        Returns:
        A description of the type that is produced by this advice method.
      • asMethodExit

        public Advice.Dispatcher.Resolved.ForMethodExit asMethodExit​(java.util.List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
                                                                     org.objectweb.asm.ClassReader classReader,
                                                                     Advice.Dispatcher.Unresolved methodEnter,
                                                                     Advice.PostProcessor.Factory postProcessorFactory)
        Resolves this dispatcher as a dispatcher for exiting a method.
        Specified by:
        asMethodExit in interface Advice.Dispatcher.Unresolved
        Parameters:
        userFactories - A list of custom factories for binding parameters of an advice method.
        classReader - A class reader to query for a class file which might be null if this dispatcher is not binary.
        methodEnter - The unresolved dispatcher for the method enter advice.
        postProcessorFactory - The post processor factory to use.
        Returns:
        This dispatcher as a dispatcher for exiting a method.