search_method
Retrieve method details of Java classes using process ID and class pattern, with options for method filtering, regex matching, and detailed output. Designed for JVM process analysis and debugging.
Instructions
查看类的方法信息
Args:
pid: 进程ID
class_pattern: 类名表达式匹配
method_pattern: 可选的方法名表达式
show_detail: 是否展示每个方法的详细信息
use_regex: 是否开启正则表达式匹配,默认为通配符匹配
classloader_hash: 指定class的ClassLoader的hashcode
classloader_class: 指定执行表达式的ClassLoader的class name
max_matches: 具有详细信息的匹配类的最大数量(默认为100)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
class_pattern | Yes | ||
classloader_class | No | ||
classloader_hash | No | ||
max_matches | No | ||
method_pattern | No | ||
pid | Yes | ||
show_detail | No | ||
use_regex | No |
Input Schema (JSON Schema)
{
"properties": {
"class_pattern": {
"title": "Class Pattern",
"type": "string"
},
"classloader_class": {
"default": null,
"title": "Classloader Class",
"type": "string"
},
"classloader_hash": {
"default": null,
"title": "Classloader Hash",
"type": "string"
},
"max_matches": {
"default": null,
"title": "Max Matches",
"type": "integer"
},
"method_pattern": {
"default": null,
"title": "Method Pattern",
"type": "string"
},
"pid": {
"title": "Pid",
"type": "integer"
},
"show_detail": {
"default": false,
"title": "Show Detail",
"type": "boolean"
},
"use_regex": {
"default": false,
"title": "Use Regex",
"type": "boolean"
}
},
"required": [
"pid",
"class_pattern"
],
"title": "search_methodArguments",
"type": "object"
}