PrimRef

dotty.tools.sjs.ir.Types.PrimRef
See thePrimRef companion object
final class PrimRef extends NonArrayTypeRef

Primitive type reference.

Attributes

Companion
object
Graph
Supertypes
class TypeRef
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def hashCode(): Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Any

Inherited methods

final def compareTo(that: TypeRef): Int

Attributes

Inherited from:
TypeRef
def show(): String

Attributes

Inherited from:
TypeRef

Concrete fields

val charCode: Char

The char code of this primitive type.

The char code of this primitive type.

For all primitive types except NullType and NothingType, this is specified by the IR spec in the sense that it is visible in the result of classOf[Array[Prim]].getName() (e.g., that is "[I" for Array[Int]).

For NullType and NothingType, the char codes are 'N' and 'E', respectively.

Attributes

The display name of this primitive type.

The display name of this primitive type.

For all primitive types except NullType and NothingType, this is specified by the IR spec in the sense that it is the result of classOf[Prim].getName().

For NullType and NothingType, the names are "null" and "nothing", respectively.

Attributes