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