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

Member predicate Make::Container::getStem

Gets the stem of this container, that is, the prefix of its base name up to (but not including) the last dot character if there is one, or the entire base name if there is not.

Here are some examples of absolute paths and the corresponding stems (surrounded with quotes to avoid ambiguity):

Absolute pathStem
string getStem()