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

Member predicate LiveLiteral::getValue

Live literal classes consist of the following:

  • A private field holding the constant value that backs this live literal.
  • A private getter to access the constant value.
  • A public getter that either calls the private getter and returns its result or, if live literals are activated, returns the value of a dynamic state object that is initialized with the constant value.

This predicate gets the constant value held by the private field.

CompileTimeConstantExpr getValue()