get_super_method
Identify the superclass or interface method that a Java method overrides or implements from a given file position. Use it to trace inherited method declarations.
Instructions
Find the method that this method overrides or implements.
USAGE: Position on a method that overrides/implements another OUTPUT: The superclass/interface method being overridden
The overridden method is the one the compiler binds: the nearest declaration in the superclass chain, else in the interfaces, visible from the method's package. unresolvedSupertypes, present only when there are any, names each supertype of the declaring type the compiler cannot resolve (a missing dependency), as the declaration writes it, with the type whose declaration names it: the method may override a method of one of them.
IMPORTANT: Uses ZERO-BASED coordinates.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Zero-based line number | |
| column | Yes | Zero-based column number | |
| filePath | Yes | Path to source file |