Calls to the method are replaced with a compile time constant. The constant value is extracted from the C header file during native image generation.
The class containing the annotated method must be annotated with CContext.
| Modifier and Type | Class and Description |
|---|---|
| public static class | CConstant.
Allows access to the value of a |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| value | back to summary |
|---|---|
| public String value() Specifies the name of the C constant. If no name is provided, the method name is used as the field name. A possible "get" prefix of the method name is removed.
| |
CConstant during image generation.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> T |
| ValueAccess | back to summary |
|---|---|
| private ValueAccess() | |
| get | back to summary |
|---|---|
| public static <T> T get(Class<?> declaringClass, String methodName, Class<T> returnType) Returns the value of a This method is useful during native image generation, when the annotated method cannot be called.
| |