CodeQL library for Java
Search

Member predicate Expr::isCompileTimeConstant

Holds if this expression is a compile-time constant.

See JLS v8, section 15.28 (Constant Expressions).

predicate isCompileTimeConstant()