Enum Class Ek9MethodKind

java.lang.Object
java.lang.Enum<Ek9MethodKind>
org.ek9lang.compiler.backend.jvm.support.Ek9MethodKind
All Implemented Interfaces:
Serializable, Comparable<Ek9MethodKind>, Constable

public enum Ek9MethodKind extends Enum<Ek9MethodKind>
THE closed taxonomy of EK9 compiler-generated method kinds carried by the Ek9MethodKinds class attribute (C.2), each with its debugger MethodDebugPolicy bitset. Designed up-front from a full audit of the emission surface - see docs/strategic/EK9_DEBUGGER_STRATEGY.md ยง18.2, which also records how the emitter identifies each kind.

Each constant carries an EXPLICIT wire code, decoupled from Enum.ordinal(): the code is the byte written into the attribute, so constants may be reordered in source without breaking the wire. APPEND ONLY - never reuse or repurpose a code; add new kinds with new codes and bump Ek9MethodKindsAttribute.FORMAT_VERSION if the record shape changes.

Ordinary user methods and abstract declarations get NO entry (implied user-code); only the kinds below are ever recorded. DISPATCHER is the one advisory user-code entry.

  • Enum Constant Details

    • C_INIT

      public static final Ek9MethodKind C_INIT
    • SYNTHETIC_CTOR

      public static final Ek9MethodKind SYNTHETIC_CTOR
    • IMPLICIT_ISSET

      public static final Ek9MethodKind IMPLICIT_ISSET
    • FIELD_SET_STATUS

      public static final Ek9MethodKind FIELD_SET_STATUS
    • FUNCTION_SINGLETON

      public static final Ek9MethodKind FUNCTION_SINGLETON
    • TRAIT_DELEGATE

      public static final Ek9MethodKind TRAIT_DELEGATE
    • CONSTRAINED_FORWARDER

      public static final Ek9MethodKind CONSTRAINED_FORWARDER
    • GENERIC_DELEGATE

      public static final Ek9MethodKind GENERIC_DELEGATE
    • MAIN_DISPATCHER

      public static final Ek9MethodKind MAIN_DISPATCHER
    • APP_LIFECYCLE

      public static final Ek9MethodKind APP_LIFECYCLE
    • APPLICATION_WIRING

      public static final Ek9MethodKind APPLICATION_WIRING
    • APPLICATION_DECOMMISSION

      public static final Ek9MethodKind APPLICATION_DECOMMISSION
    • CONSTANTS

      public static final Ek9MethodKind CONSTANTS
    • ANY_BRIDGE

      public static final Ek9MethodKind ANY_BRIDGE
    • JAVA_BRIDGE

      public static final Ek9MethodKind JAVA_BRIDGE
    • ASPECT_PROXY

      public static final Ek9MethodKind ASPECT_PROXY
    • SERVICE_DISPATCH

      public static final Ek9MethodKind SERVICE_DISPATCH
    • TEXT_SUBSYSTEM

      public static final Ek9MethodKind TEXT_SUBSYSTEM
    • I_INIT

      public static final Ek9MethodKind I_INIT
    • DEFAULT_OP

      public static final Ek9MethodKind DEFAULT_OP
    • ENUM_OP

      public static final Ek9MethodKind ENUM_OP
    • ENUM_CTOR

      public static final Ek9MethodKind ENUM_CTOR
    • CONSTRAINED_GUARD

      public static final Ek9MethodKind CONSTRAINED_GUARD
    • FUNCTION_CALL

      public static final Ek9MethodKind FUNCTION_CALL
    • ENUM_ITERATOR

      public static final Ek9MethodKind ENUM_ITERATOR
    • GENERIC_METHOD

      public static final Ek9MethodKind GENERIC_METHOD
    • DYNAMIC_CLASS_METHOD

      public static final Ek9MethodKind DYNAMIC_CLASS_METHOD
    • PROGRAM_MAIN

      public static final Ek9MethodKind PROGRAM_MAIN
    • APPLICATION_PREPARE

      public static final Ek9MethodKind APPLICATION_PREPARE
    • DISPATCHER

      public static final Ek9MethodKind DISPATCHER
  • Method Details

    • values

      public static Ek9MethodKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Ek9MethodKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • code

      public int code()
    • policy

      public int policy()
    • isHideAlways

      public boolean isHideAlways()
    • fromCode

      public static Ek9MethodKind fromCode(int code)
      Resolve a wire code back to its kind, or null if unknown to this version.