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

Member predicate StringTemplateExpr::getComponent

Gets the ith component of this string template.

For example, in the string template "foo${bar}baz", the 0th component is the string literal "foo", the 1st component is the variable access bar, and the 2nd component is the string literal "bar".

Expr getComponent(int i)