Enum Class CEntryPoint.Builtin

java.lang.Object
java.lang.Enum<CEntryPoint.Builtin>
org.graalvm.nativeimage.c.function.CEntryPoint.Builtin
All Implemented Interfaces:
Serializable, Comparable<CEntryPoint.Builtin>, Constable
Enclosing class:
CEntryPoint

public static enum CEntryPoint.Builtin extends Enum<CEntryPoint.Builtin>
The built-in methods which can be aliased.
Since:
19.0
  • Enum Constant Details

    • NO_BUILTIN

      public static final CEntryPoint.Builtin NO_BUILTIN
      The annotated method is not an alias for a built-in method.
      Since:
      19.0
    • CREATE_ISOLATE

      public static final CEntryPoint.Builtin CREATE_ISOLATE
      The annotated method creates an isolate. An alias for this built-in requires no arguments, and must have a return type of IsolateThread. In case of an error, NULL is returned.
      Since:
      19.0
    • ATTACH_THREAD

      public static final CEntryPoint.Builtin ATTACH_THREAD
      The annotated method attaches the current thread to an isolate. It requires a parameter of type Isolate with the isolate to attach to, and a return type of IsolateThread. In case of an error, NULL is returned.
      Since:
      19.0
    • GET_CURRENT_THREAD

      public static final CEntryPoint.Builtin GET_CURRENT_THREAD
      The annotated method returns the IsolateThread of the current thread in a specified Isolate. It requires a parameter of type Isolate for the isolate in question, and a return type of IsolateThread. In case of an error or if the current thread is not attached to the specified isolate, NULL is returned.
      Since:
      19.0
    • GET_ISOLATE

      public static final CEntryPoint.Builtin GET_ISOLATE
      The annotated method returns the Isolate for an IsolateThread. It requires a parameter of type IsolateThread, and a return type of Isolate. In case of an error, NULL is returned.
      Since:
      19.0
    • DETACH_THREAD

      public static final CEntryPoint.Builtin DETACH_THREAD
      The annotated method detaches the current thread, given as an IsolateThread, from an isolate. It requires a parameter of type IsolateThread, and a return type of int or void. With an int return type, zero is returned when successful, or non-zero in case of an error.
      Since:
      19.0
    • TEAR_DOWN_ISOLATE

      public static final CEntryPoint.Builtin TEAR_DOWN_ISOLATE
      The annotated method tears down the specified isolate. It requires a parameter of type IsolateThread, and a return type of int or void. With an int return type, zero is returned when successful, or non-zero in case of an error.
      Since:
      19.0
  • Method Details

    • values

      public static CEntryPoint.Builtin[] 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 CEntryPoint.Builtin 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