Enum MethodCall.TargetHandler.ForSelfOrStaticInvocation

    • Constructor Detail

      • ForSelfOrStaticInvocation

        private ForSelfOrStaticInvocation()
    • Method Detail

      • values

        public static MethodCall.TargetHandler.ForSelfOrStaticInvocation[] 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 (MethodCall.TargetHandler.ForSelfOrStaticInvocation c : MethodCall.TargetHandler.ForSelfOrStaticInvocation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MethodCall.TargetHandler.ForSelfOrStaticInvocation 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
      • resolve

        public StackManipulation resolve​(Implementation.Target implementationTarget,
                                         MethodDescription invokedMethod,
                                         MethodDescription instrumentedMethod,
                                         TypeDescription instrumentedType,
                                         Assigner assigner,
                                         Assigner.Typing typing)
        Creates a stack manipulation that represents the method's invocation.
        Specified by:
        resolve in interface MethodCall.TargetHandler
        Parameters:
        implementationTarget - The implementation target.
        invokedMethod - The method to be invoked.
        instrumentedMethod - The instrumented method.
        instrumentedType - The instrumented type. @return A stack manipulation that invokes the method.
        assigner - The assigner to use.
        typing - The typing to apply.
        Returns:
        A stack manipulation that loads the method target onto the operand stack.