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

Member predicate Expr::isCompileTimeConstant

Holds if this expression is a compile-time constant.

See JLS v8, section 15.28 (Constant Expressions).

predicate isCompileTimeConstant()