Val

sealed abstract class Val

A NIR value.

Companion:
object
class Object
trait Matchable
class Any
class Byte
class Char
class ClassOf
class Const
class Double
object False.type
class Float
class Global
class Int
class Local
class Long
object Null.type
class Short
class Size
class String
object True.type
object Unit.type
class Virtual
class Zero

Value members

Concrete methods

final def canonicalize: Val

The canonical form of this

The canonical form of this

final def isCanonical: Boolean

true iff this is in canonical form.

true iff this is in canonical form.

final def isMinusOne: Boolean

true iff this is a numerical value equal to "-1".

true iff this is a numerical value equal to "-1".

final def isOne: Boolean

true iff this is the value "1" in its type.

true iff this is the value "1" in its type.

final def isSignedMaxValue(is32BitPlatform: Boolean): Boolean

true iff this is the maximum value of a signed numerical type.

true iff this is the maximum value of a signed numerical type.

final def isSignedMinValue(is32BitPlatform: Boolean): Boolean

true iff this is the minimum value of a signed numerical type.

true iff this is the minimum value of a signed numerical type.

true iff this is the maximum value of an unsigned numerical type.

true iff this is the maximum value of an unsigned numerical type.

true iff this is the minimum value of an unsigned numerical type.

true iff this is the minimum value of an unsigned numerical type.

final def isVirtual: Boolean

true iff this represents a virtual value.

true iff this represents a virtual value.

final def isZero: Boolean

true iff this is the "zero" value of its type.

true iff this is the "zero" value of its type.

final def show: String

A textual representation of this.

A textual representation of this.

final def ty: Type

The type of the value.

The type of the value.