CodeQL library for Java/Kotlin
codeql/java-all 0.8.11-dev (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()