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

Member predicate RegExpTermNode::hasLocationInfo

Holds if this node is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

predicate hasLocationInfo(string filepath, int startline, int startcolumn, int endline, int endcolumn)