类 AbstractParameterConverter<A extends Annotation>

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.converter.AbstractParameterConverter<A>
类型参数:
A - the type of the annotation
所有已实现的接口:
ParameterConverter<A>
直接已知子类:
McpPromptParameterConverter, McpToolParameterConverter

public abstract class AbstractParameterConverter<A extends Annotation> extends Object implements ParameterConverter<A>
This abstract class is used to convert the value of a parameter annotated with AbstractParameterConverter to the required type, and provides a default implementation for the convertAll(Parameter[], Map) method.
作者:
codeboyzhou
  • 构造器详细资料

    • AbstractParameterConverter

      public AbstractParameterConverter()
  • 方法详细资料

    • convertAll

      public List<Object> convertAll(Parameter[] methodParameters, Map<String,Object> args)
      Converts the values of all parameters annotated with the specified annotation to the required types.
      参数:
      methodParameters - the parameters of the method
      args - the arguments passed to the method
      返回:
      the converted values of all parameters