| Modifier and Type | Field and Description |
|---|---|
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | isInNativeImage()
Checks whether we're running in SubstrateVM native image only by the presence of
|
| public static boolean | isInNativeImageAndIsAtRuntime()
Check whether we're running in SubstrateVM native image and also in "runtime" mode. |
| public static boolean | isUnsupportedFeatureError(Throwable e)
Check whether the given error is a substratevm UnsupportedFeatureError |
| public static boolean | needsReflectionConfiguration(Class<?> cl)
Check whether the given class is likely missing reflection configuration (running in native image, and no members visible in reflection). |
| RUNNING_IN_SVM | back to summary |
|---|---|
| private static final boolean RUNNING_IN_SVM | |
| NativeImageUtil | back to summary |
|---|---|
| private NativeImageUtil() | |
| isInNativeImage | back to summary |
|---|---|
| public static boolean isInNativeImage() Checks whether we're running in SubstrateVM native image only by the presence of
| |
| isInNativeImageAndIsAtRuntime | back to summary |
|---|---|
| public static boolean isInNativeImageAndIsAtRuntime() Check whether we're running in SubstrateVM native image and also in "runtime" mode. The "runtime" check cannot be a constant, because the static initializer may run early during build time
As optimization,
| |
| isUnsupportedFeatureError | back to summary |
|---|---|
| public static boolean isUnsupportedFeatureError(Throwable e) Check whether the given error is a substratevm UnsupportedFeatureError | |
| needsReflectionConfiguration | back to summary |
|---|---|
| public static boolean needsReflectionConfiguration(Class<?> cl) Check whether the given class is likely missing reflection configuration (running in native image, and no members visible in reflection). | |