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

Member predicate ClassInstanceExpr::getATypeArgument

Gets a type argument of the type of the created instance.

This is used for instantiations of parameterized classes. For example for new ArrayList<String>() the result would be the expression representing String.

Expr getATypeArgument()