An execution context must be passed as an IsolateThread that is specific to the current
thread. This pointer can be obtained via CurrentIsolate#getCurrentThread(). When there is
more than one parameter of IsolateThread, exactly one of the parameters must be annotated
with IsolateThreadContext.
Exceptions cannot be thrown to the caller and must be explicitly caught in the entry point method. Any uncaught exception causes the termination of the process after it is printed.
No object types are permitted for parameters or return types; only primitive Java values,
word values, and enum values are allowed. Enum values are automatically
converted from integer constants to Java enum object constants. The enum class must have a
CEnum annotation. When enum values are passed as parameters, the enum class must have a
method with a CEnumLookup annotation. For enum return types, the enum class must have a
method that is annotated with CEnumValue.
| Modifier and Type | Class and Description |
|---|---|
| public static class | CEntryPoint.
A |
| public static enum | CEntryPoint.
The built-in methods which can be aliased. |
| public static interface | CEntryPoint.
Marker interface for all |
| public static class | CEntryPoint.
Special placeholder value for |
| public static @interface | CEntryPoint.
Designates an |
| public static @interface | CEntryPoint.
Designates an |
| public static class | CEntryPoint.
A |
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public CEntryPoint. | builtin()
Specifies that the annotated entry point method is an alias for a built-in function as provided by the C API. |
| public String[] | |
| public Class | exceptionHandler()
Provides an exception handler for all exceptions that are not handled explicitly by the entry point method. |
| public Class | include()
If the supplier returns |
| public String | |
| public CEntryPoint. | publishAs()
Whether the entry point is part of the symbols and header files produced by Native Image. |
| builtin | back to summary |
|---|---|
| public CEntryPoint. Specifies that the annotated entry point method is an alias for a built-in function as
provided by the C API. Such aliases may have extra arguments which are ignored and can be
used to adhere to specific external conventions. The annotated method must be declared
| |
| documentation | back to summary |
|---|---|
| public String[] documentation() Method documentation to be included in the header file, as an array of lines.
| |
| exceptionHandler | back to summary |
|---|---|
| public Class Provides an exception handler for all exceptions that are not handled explicitly by the entry
point method. Java exceptions cannot be passed back to C code. If this property is not set,
any uncaught exception is treated as a
The provided class must have exactly one declared method (the exception handler method). The
method must be static, have one parameter of type
| |
| include | back to summary |
|---|---|
| public Class If the supplier returns
| |
| name | back to summary |
|---|---|
| public String name() The symbol name to use for this entry point.
| |
| publishAs | back to summary |
|---|---|
| public CEntryPoint. Whether the entry point is part of the symbols and header files produced by Native Image.
| |
BooleanSupplier that always returns true.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| AlwaysIncluded | back to summary |
|---|---|
| private AlwaysIncluded() | |
| getAsBoolean | back to summary |
|---|---|
| public boolean getAsBoolean() Implements java. Returns
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final CEntryPoint. | ATTACH_THREAD
The annotated method attaches the current thread to an isolate. |
| public static final CEntryPoint. | CREATE_ISOLATE
The annotated method creates an isolate. |
| public static final CEntryPoint. | DETACH_THREAD
The annotated method detaches the current thread, given as an |
| public static final CEntryPoint. | GET_CURRENT_THREAD
The annotated method returns the |
| public static final CEntryPoint. | GET_ISOLATE
The annotated method returns the |
| public static final CEntryPoint. | NO_BUILTIN
The annotated method is not an alias for a built-in method. |
| public static final CEntryPoint. | TEAR_DOWN_ISOLATE
The annotated method tears down the specified isolate. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CEntryPoint. | |
| public static CEntryPoint. |
| ATTACH_THREAD | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method attaches the current thread to an isolate. It requires a parameter
of type
| |
| CREATE_ISOLATE | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method creates an isolate. An alias for this built-in requires no
arguments, and must have a return type of
| |
| DETACH_THREAD | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method detaches the current thread, given as an
| |
| GET_CURRENT_THREAD | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method returns the
| |
| GET_ISOLATE | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method returns the
| |
| NO_BUILTIN | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method is not an alias for a built-in method.
| |
| TEAR_DOWN_ISOLATE | back to summary |
|---|---|
| public static final CEntryPoint. The annotated method tears down the specified isolate. It requires a parameter of type
| |
| Builtin | back to summary |
|---|---|
| private Builtin() | |
| valueOf | back to summary |
|---|---|
| public static CEntryPoint. | |
| values | back to summary |
|---|---|
| public static CEntryPoint. | |
exception handler classes.
exceptionHandler() to print the caught exception and
treat it as a fatal error.
| Access | Constructor and Description |
|---|---|
| private |
| FatalExceptionHandler | back to summary |
|---|---|
| private FatalExceptionHandler() | |
Isolate parameter to use as the execution context. At most one
parameter can be annotated with this annotation or IsolateThreadContext.
IsolateThread parameter to use as the execution context. At most one
parameter can be annotated with this annotation or IsolateContext.
BooleanSupplier that always returns false.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| NotIncludedAutomatically | back to summary |
|---|---|
| private NotIncludedAutomatically() | |
| getAsBoolean | back to summary |
|---|---|
| public boolean getAsBoolean() Implements java. Returns
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final CEntryPoint. | NotPublished
Do not publish the entry point method. |
| public static final CEntryPoint. | SymbolAndHeader
Create a symbol for the entry point method in the native image, and if building a shared library image, also include a C declaration in the generated C header file. |
| public static final CEntryPoint. | SymbolOnly
Create a symbol for the entry point method in the native image. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CEntryPoint. | |
| public static CEntryPoint. |
| NotPublished | back to summary |
|---|---|
| public static final CEntryPoint. Do not publish the entry point method. | |
| SymbolAndHeader | back to summary |
|---|---|
| public static final CEntryPoint. Create a symbol for the entry point method in the native image, and if building a shared library image, also include a C declaration in the generated C header file. | |
| SymbolOnly | back to summary |
|---|---|
| public static final CEntryPoint. Create a symbol for the entry point method in the native image. | |
| Publish | back to summary |
|---|---|
| private Publish() | |
| valueOf | back to summary |
|---|---|
| public static CEntryPoint. | |
| values | back to summary |
|---|---|
| public static CEntryPoint. | |