CodeQL library for Java/Kotlin
codeql/java-all 0.9.0 (changelog, source)

Member predicate RefType::nestedName

Gets the nested name of this type.

If this type is not a nested type, the result is the same as getName(). Otherwise the name of the nested type is prefixed with a $ and appended to the name of the enclosing type, which might be a nested type as well.

string nestedName()