All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.flyjingfish.android_aop_annotation.ProceedJoinPointSuspend Maven / Gradle / Ivy

package com.flyjingfish.android_aop_annotation;

import com.flyjingfish.android_aop_annotation.base.OnSuspendReturnListener;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
 * 切点相关信息类,wiki 文档使用说明
 */
public final class ProceedJoinPointSuspend extends ProceedJoinPoint{
    ProceedJoinPointSuspend(@NotNull Class targetClass, Object[] args, @Nullable Object target, boolean isSuspend) {
        super(targetClass, args, target, isSuspend);
    }

    /**
     * 调用切点方法内代码,通过设置 {@link OnSuspendReturnListener} 可以修改返回值
     *
     * @param onSuspendReturnListener 设置 suspend 的函数的 返回前的监听,在此可修改返回值
     * @return 返回切点方法返回值 wiki 文档使用说明
     */
    @Nullable
    public Object proceed(@Nullable OnSuspendReturnListener onSuspendReturnListener) {
        return super.proceed(onSuspendReturnListener,args);
    }

    /**
     * 调用切点方法内代码,通过设置 {@link OnSuspendReturnListener} 可以修改返回值
     *
     * @param onSuspendReturnListener 设置 suspend 的函数的 返回前的监听,在此可修改返回值
     * @param args 切点方法参数数组
     * @return 返回切点方法返回值 wiki 文档使用说明
     */
    @Nullable
    public Object proceed(@Nullable OnSuspendReturnListener onSuspendReturnListener,Object... args) {
        return super.proceed(onSuspendReturnListener, args);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy