Skip to content

NullValue

Represents a null value of some class type.

Properties

sourcePsi

abstract val sourcePsi: KtElement?

A source element from which the value was created. The PSI might be null for constants from non-source files.

value

abstract val value: Any?

The value of the constant. The type of value matches its represented class, e.g. BooleanValue.value is a Boolean.

For NullValue and ErrorValue, value contains a special value.

Functions

render

abstract fun render(): String

Renders the value as a representable constant value String, such as 1, 2f, 3u null, "text".