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

Member predicate Expr::getKind

Gets the kind of this expression.

Each kind of expression has a unique (integer) identifier. This is an implementation detail that should not normally be referred to by library users, since the kind of an expression is also represented by its QL type.

In a few rare situations, referring to the kind of an expression via its unique identifier may be appropriate; for example, when comparing whether two expressions have the same kind (as opposed to checking whether an expression has a particular kind).

int getKind()