ObjectSlots

The layout of object slots for my instances.

Entries

Link copied to clipboard

The method for which this is a message bundle. That is, if a use of this bundle is parsed, the resulting code will ultimately invoke this method. A method may have multiple such bundles due to renaming of imports.

Link copied to clipboard

An atom which is the "true name" of this bundle. Due to import renaming, a method might have multiple such names, one per bundle.

Link copied to clipboard

A set of grammatical restrictions that apply to this message bundle.

Link copied to clipboard

The tuple of macro definitions that are defined for this message bundle.

Link copied to clipboard

The A_Map from A_Definition to A_DefinitionParsingPlan. The keys should always agree with the A_Method's collection of definitions and macro definitions.

Properties

Link copied to clipboard

In Java it was possible to define this interface in such a way that the name method was abstract and implemented by each specific Enum, but Kotlin breaks this mechanism. BUT – we're able to cast this to Enum to get to that field. I believe this code gets copied down into each specific Enum subclass, so the dynamic type check for the cast is trivially eliminated in each case. And worst case, Hotspot will be able to inline calls to this from sites that are known to be Enums.

Link copied to clipboard

In Java it was possible to define this interface in such a way that the ordinal() method was abstract and implemented by each specific Enum, but Kotlin breaks this mechanism. BUT – we're able to cast this to Enum to get to that field. I believe this code gets copied down into each specific Enum subclass, so the dynamic type check for the cast is trivially eliminated in each case. And worst case, Hotspot will be able to inline calls to this from sites that are known to be Enums.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.