find_type_instantiations
Locate all 'new' instantiation points for a Java type to analyze object creation patterns, identify factory candidates, and find coupling points in code.
Instructions
Find all instantiations of a type (new Foo() calls).
JDT-UNIQUE: This fine-grained search is not available in LSP.
USAGE: Provide fully qualified type name OUTPUT: All locations where the type is instantiated with 'new'
Useful for:
Understanding object creation patterns
Identifying factory method candidates
Finding coupling points
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | Fully qualified type name (e.g., 'java.util.ArrayList') | |
| maxResults | No | Maximum results to return (default 100) |