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

Member predicate RefType::getSourceDeclaration

Gets the source declaration of this type.

For parameterized instances of generic types and raw types, the source declaration is the corresponding generic type.

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

For all other types, the source declaration is the type itself.

RefType getSourceDeclaration()