类 McpToolParameterConverter
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.converter.AbstractParameterConverter<McpToolParam>
com.github.codeboyzhou.mcp.declarative.server.converter.McpToolParameterConverter
- 所有已实现的接口:
ParameterConverter<McpToolParam>
This class is used to convert the value of a parameter annotated with
McpToolParam to the
required type.- 作者:
- codeboyzhou
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Converts the value of the parameter annotated withMcpToolParamto the required type.Returns the type of the annotation this converter handles.从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.converter.AbstractParameterConverter
convertAll
-
构造器详细资料
-
McpToolParameterConverter
public McpToolParameterConverter()
-
-
方法详细资料
-
convert
Converts the value of the parameter annotated withMcpToolParamto the required type.- 参数:
parameter- the parameter annotated withMcpToolParamannotation- the annotation instanceargs- the arguments passed to the method- 返回:
- the converted value of the parameter
-
getAnnotationType
Returns the type of the annotation this converter handles.- 返回:
- the type of the annotation this converter handles
-