Interface ParameterConverter<A extends Annotation>
- Type Parameters:
A- the type of the annotation
- All Known Implementing Classes:
AbstractParameterConverter,McpPromptParameterConverter,McpToolParameterConverter
public interface ParameterConverter<A extends Annotation>
This interface is used to convert the value of a parameter annotated with
ParameterConverter to the
required type.- Author:
- codeboyzhou
-
Method Summary
Modifier and TypeMethodDescriptionConverts the value of the specified parameter annotated with the specified annotation to the required type.Returns the type of the annotation that this converter supports.
-
Method Details
-
convert
Converts the value of the specified parameter annotated with the specified annotation to the required type.- Parameters:
parameter- the parameter to convertannotation- the annotation that annotates the parameterargs- the arguments passed to the method- Returns:
- the converted value of the parameter
-
getAnnotationType
Returns the type of the annotation that this converter supports.- Returns:
- the type of the annotation that this converter supports
-