Class VariantRouter.MethodVariant<T>

java.lang.Object
cloud.opencode.base.feature.proxy.VariantRouter.MethodVariant<T>
Type Parameters:
T - the target type | 目标类型
Enclosing class:
VariantRouter<T>

public static class VariantRouter.MethodVariant<T> extends Object
Wrapper for method-based variants 方法变体的包装器
Since:
JDK 25, opencode-base-feature V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Details

    • invoke

      public Object invoke(Object... args) throws Exception
      Invoke the variant method 调用变体方法
      Parameters:
      args - the method arguments | 方法参数
      Returns:
      the result | 结果
      Throws:
      Exception - if invocation fails | 如果调用失败
    • getMethodName

      public String getMethodName()
      Get the method name 获取方法名
      Returns:
      method name | 方法名