CodeQL library for Java
codeql/java-all 0.4.0-dev (changelog, source)
Search

Member predicate Method::getSourceDeclaration

Gets the source declaration of this callable.

For parameterized instances of generic methods, the source declaration is the corresponding generic method.

For non-parameterized callables declared inside a parameterized instance of a generic type, the source declaration is the corresponding callable in the generic type.

For all other callables, the source declaration is the callable itself.

SrcMethod getSourceDeclaration()