find_method_references
Find all locations where a Java method is used as a method reference (Foo::bar) to analyze lambda-style usages and refactoring.
Instructions
Find all method reference expressions (Foo::bar lambda syntax).
JDT-UNIQUE: This fine-grained search is not available in LSP.
USAGE: Position on a method, or provide method details OUTPUT: All locations where the method is used as a method reference
Useful for:
Understanding functional programming patterns
Finding lambda-style usages of methods
Refactoring analysis
IMPORTANT: Uses ZERO-BASED coordinates.
potentialMatches, present only when there are any, holds the places JDT's search reports as possible matches but cannot confirm, because a type or name there does not resolve (a missing dependency or a compile error): count is their exact number, and locations lists them, as many as the results it stands beside may list. They are never counted or listed as results.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number of the method | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Path to source file containing the method | |
| maxResults | No | Maximum results to return (default 100) |