Enum Class CEntryPoint.Builtin
- All Implemented Interfaces:
Serializable
,Comparable<CEntryPoint.Builtin>
,Constable
- Enclosing class:
CEntryPoint
The built-in methods which can be aliased.
- Since:
- 19.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe annotated method attaches the current thread to an isolate.The annotated method creates an isolate.The annotated method detaches the current thread, given as anIsolateThread
, from an isolate.The annotated method returns theIsolateThread
of the current thread in a specifiedIsolate
.The annotated method returns theIsolate
for anIsolateThread
.The annotated method is not an alias for a built-in method.The annotated method tears down the specified isolate. -
Method Summary
Modifier and TypeMethodDescriptionstatic CEntryPoint.Builtin
Returns the enum constant of this class with the specified name.static CEntryPoint.Builtin[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_BUILTIN
The annotated method is not an alias for a built-in method.- Since:
- 19.0
-
CREATE_ISOLATE
The annotated method creates an isolate. An alias for this built-in requires no arguments, and must have a return type ofIsolateThread
. In case of an error,NULL
is returned.- Since:
- 19.0
-
ATTACH_THREAD
The annotated method attaches the current thread to an isolate. It requires a parameter of typeIsolate
with the isolate to attach to, and a return type ofIsolateThread
. In case of an error,NULL
is returned.- Since:
- 19.0
-
GET_CURRENT_THREAD
The annotated method returns theIsolateThread
of the current thread in a specifiedIsolate
. It requires a parameter of typeIsolate
for the isolate in question, and a return type ofIsolateThread
. 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
The annotated method returns theIsolate
for anIsolateThread
. It requires a parameter of typeIsolateThread
, and a return type ofIsolate
. In case of an error,NULL
is returned.- Since:
- 19.0
-
DETACH_THREAD
The annotated method detaches the current thread, given as anIsolateThread
, from an isolate. It requires a parameter of typeIsolateThread
, and a return type ofint
orvoid
. With anint
return type, zero is returned when successful, or non-zero in case of an error.- Since:
- 19.0
-
TEAR_DOWN_ISOLATE
The annotated method tears down the specified isolate. It requires a parameter of typeIsolateThread
, and a return type ofint
orvoid
. With anint
return type, zero is returned when successful, or non-zero in case of an error.- Since:
- 19.0
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-