search_java_code
Search Java classes using metadata keywords from javadoc annotations to locate trade surveillance components like report generators and trade processors.
Instructions
Search for Java classes using metadata keywords instead of file paths.
This tool searches through indexed Java files by their javadoc metadata annotations.
Java classes should include metadata in javadoc comments like:
/**
* @keywords trade, settlement, report_generator
* @type report_engine
* @description Generates daily settlement reports
*/
Args:
search_keywords: Keywords to search for (e.g., "report generator", "trade processor")
code_directory: Path to the directory containing Java source files (used for initial scan)
Returns:
A dictionary containing matching Java files with their metadata and methods
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_keywords | Yes | ||
| code_directory | No | ./src |
Input Schema (JSON Schema)
{
"properties": {
"code_directory": {
"default": "./src",
"title": "Code Directory",
"type": "string"
},
"search_keywords": {
"title": "Search Keywords",
"type": "string"
}
},
"required": [
"search_keywords"
],
"type": "object"
}