Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
epilogue
Specifies a class with epilogue code that is executed when the entry point method returns to
C in order to leave the execution context.
|
Class<? extends BooleanSupplier> |
include
If the supplier returns true, this entry point is added automatically when building a shared
library.
|
Class<? extends Function<String,String>> |
nameTransformation
A function that is passed the name provided with
CEntryPoint.name() and returns
another string that will be used for the entry point's symbol name. |
Class<?> |
prologue
Specifies a class with prologue code that is executed when the entry point method is called
from C in order to establish an execution context.
|
CEntryPointOptions.Publish |
publishAs |
public abstract Class<? extends Function<String,String>> nameTransformation
CEntryPoint.name()
and returns
another string that will be used for the entry point's symbol name. A common use is to add
prefixes or suffixes to entry point symbol names. When CEntryPoint.name()
is not set,
the function is passed a string that contains the mangled class and method names.public abstract Class<? extends BooleanSupplier> include
public abstract Class<?> prologue
CEntryPointOptions.AutomaticPrologue
for the
default behavior and CEntryPointSetup
for commonly used prologues.
The given class must have exactly one static method with parameters that are a subsequence of
the entry point method's parameters. In other words, individual parameters may be omitted,
but must be in the same order. The entry point method's parameters are matched to the
prologue method's parameters. The prologue method must then use CEntryPointActions
for establishing the execution context.
public abstract Class<?> epilogue
CEntryPointSetup
for commonly used
epilogues.
The given class must have exactly one static method with no parameters that must use the
CEntryPointActions
methods to leave the execution context.
public abstract CEntryPointOptions.Publish publishAs