Enum Advice.Dispatcher.Inactive

    • Constructor Detail

      • Inactive

        private Inactive()
    • Method Detail

      • values

        public static Advice.Dispatcher.Inactive[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Advice.Dispatcher.Inactive c : Advice.Dispatcher.Inactive.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Advice.Dispatcher.Inactive valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • 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.
      • isPrependLineNumber

        public boolean isPrependLineNumber()
        Returns true if the first discovered line number information should be prepended to the advice code.
        Specified by:
        isPrependLineNumber in interface Advice.Dispatcher.Resolved.ForMethodEnter
        Returns:
        true if the first discovered line number information should be prepended to the advice code.
      • 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.