PrimitiveHolder

class PrimitiveHolder

A helper class to assist with lazy loading of Primitives.

Parameters

name

The primitive's textual name.

className

The fully qualified name of the Primitive subclass.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val className: String

The full name of the Java class implementing the primitive.

Link copied to clipboard
val name: String

The name by which a primitive function is declared in Avail code.

Link copied to clipboard
val primitive: Primitive

The sole instance of the specific subclass of Primitive. It is initialized only when needed for the first time, since that causes Java class loading to happen, and we'd rather smear out that startup performance cost.