System#getProperty(String) directly with the string literals defined here
thus eliminating the need to depend on this class.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | PROPERTY_IMAGE_CODE_KEY
Holds the string that is the name of the system property providing information about the context in which code is currently executing. |
| public static final String | PROPERTY_IMAGE_CODE_VALUE_BUILDTIME
Holds the string that will be returned by the system property for
|
| public static final String | PROPERTY_IMAGE_CODE_VALUE_RUNTIME
Holds the string that will be returned by the system property for
|
| public static final String | PROPERTY_IMAGE_KIND_KEY
Name of the system property that holds if this image is built as a shared library or an executable. |
| public static final String | PROPERTY_IMAGE_KIND_VALUE_EXECUTABLE
Holds the string that will be returned by the system property for
|
| public static final String | PROPERTY_IMAGE_KIND_VALUE_SHARED_LIBRARY
Holds the string that will be returned by the system property for
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static boolean | inImageBuildtimeCode()
Returns true if (at the time of the call) code is executing in the context of image building (e.g. in a static initializer of class that will be contained in the image). |
| public static boolean | inImageCode()
Returns true if (at the time of the call) code is executing in the context of image building or during image runtime, else false. |
| public static boolean | |
| public static boolean | |
| public static boolean |
| PROPERTY_IMAGE_CODE_KEY | back to summary |
|---|---|
| public static final String PROPERTY_IMAGE_CODE_KEY Holds the string that is the name of the system property providing information about the
context in which code is currently executing. If the property returns the string given by
| |
| PROPERTY_IMAGE_CODE_VALUE_BUILDTIME | back to summary |
|---|---|
| public static final String PROPERTY_IMAGE_CODE_VALUE_BUILDTIME Holds the string that will be returned by the system property for
| |
| PROPERTY_IMAGE_CODE_VALUE_RUNTIME | back to summary |
|---|---|
| public static final String PROPERTY_IMAGE_CODE_VALUE_RUNTIME Holds the string that will be returned by the system property for
| |
| PROPERTY_IMAGE_KIND_KEY | back to summary |
|---|---|
| public static final String PROPERTY_IMAGE_KIND_KEY Name of the system property that holds if this image is built as a shared library or an
executable. If the property is
| |
| PROPERTY_IMAGE_KIND_VALUE_EXECUTABLE | back to summary |
|---|---|
| public static final String PROPERTY_IMAGE_KIND_VALUE_EXECUTABLE Holds the string that will be returned by the system property for
| |
| PROPERTY_IMAGE_KIND_VALUE_SHARED_LIBRARY | back to summary |
|---|---|
| public static final String PROPERTY_IMAGE_KIND_VALUE_SHARED_LIBRARY Holds the string that will be returned by the system property for
| |
| ImageInfo | back to summary |
|---|---|
| private ImageInfo() | |
| ensureKindAvailable | back to summary |
|---|---|
| private static void ensureKindAvailable() | |
| inImageBuildtimeCode | back to summary |
|---|---|
| public static boolean inImageBuildtimeCode() Returns true if (at the time of the call) code is executing in the context of image building (e.g. in a static initializer of class that will be contained in the image).
| |
| inImageCode | back to summary |
|---|---|
| public static boolean inImageCode() Returns true if (at the time of the call) code is executing in the context of image building
or during image runtime, else false. This method will be const-folded so that it can be used
to hide parts of an application that only work when running on the JVM. For example:
| |
| inImageRuntimeCode | back to summary |
|---|---|
| public static boolean inImageRuntimeCode() Returns true if (at the time of the call) code is executing at image runtime. This method will be const-folded. It can be used to hide parts of an application that only work when running as native image.
| |
| isExecutable | back to summary |
|---|---|
| public static boolean isExecutable() Returns true if the image is built as an executable.
| |
| isSharedLibrary | back to summary |
|---|---|
| public static boolean isSharedLibrary() Returns true if the image is build as a shared library.
| |