Enum Advice.Delegator.ForStaticInvocation

    • Constructor Detail

      • ForStaticInvocation

        private ForStaticInvocation()
    • Method Detail

      • values

        public static Advice.Delegator.ForStaticInvocation[] 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.Delegator.ForStaticInvocation c : Advice.Delegator.ForStaticInvocation.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.Delegator.ForStaticInvocation 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
      • apply

        public void apply​(org.objectweb.asm.MethodVisitor methodVisitor,
                          MethodDescription.InDefinedShape adviceMethod,
                          TypeDescription instrumentedType,
                          MethodDescription instrumentedMethod,
                          boolean exit)
        Materializes an invocation.
        Specified by:
        apply in interface Advice.Delegator
        Parameters:
        methodVisitor - The method visitor to apply the materialization to.
        adviceMethod - The advice method to materialize.
        instrumentedType - The instrumented type.
        instrumentedMethod - The instrumented method.
        exit - true if the materialization is exit advice.