Interface JvmExecutable

All Known Implementing Classes:
BuiltinFunction, JvmClassInitializer, JvmFunction

public sealed interface JvmExecutable permits BuiltinFunction, JvmFunction, JvmClassInitializer
Represents any executable entity in the JVM runtime model, such as a method, a constructor, or a class initializer (clinit block).

This interface provides a common abstraction for Java reflection Executable objects, allowing unified access to both built-in and user-defined callable elements.

The JvmExecutable hierarchy is sealed, restricting which types may implement it to ensure well-defined behavior within the runtime model. The permitted implementors are:

Author:
Chakib Daii
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the underlying reflective Executable instance represented by this object.
  • Method Details

    • getExecutable

      Executable getExecutable()
      Returns the underlying reflective Executable instance represented by this object.

      This may correspond to a Java method, constructor, or other callable element recognized by the JVM.

      Returns:
      the associated Executable instance