decompile_class
Decompile Java class bytecode into human-readable source code using a specified pattern. Analyze and monitor JVM processes to debug and understand application behavior.
Instructions
反编译指定类的源码
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_pattern | Yes | ||
| method_pattern | No | ||
| pid | Yes |
Implementation Reference
- src/jvm_mcp_server/server.py:490-504 (handler)The handler function for the 'decompile_class' tool, decorated with @self.mcp.tool() for registration in the FastMCP server. It is currently a placeholder that returns a 'not implemented' error.@self.mcp.tool() def decompile_class(pid: str = "", class_pattern: str = "", method_pattern: Optional[str] = None) -> Dict: """反编译指定类的源码 Args: pid (str): 进程ID,使用字符串形式(如:"12345") class_pattern (str): 类名表达式匹配 method_pattern (Optional[str]): 可选的方法名表达式 Returns: Dict: 包含反编译源码的字典(暂未实现) """ return {"success": False, "error": "未实现/不支持"}