Class ImageInfo
java.lang.Object
ac.simons.neo4j.migrations.cli.internal.ImageInfo
Subset of {code org.graalvm.sdk:graal-sdk} to avoid having the SDK on the classpath.
Original licensed under The Universal Permissive License (UPL), Version 1.0.
- Author:
- GraalVM Team and others
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringHolds the string that is the name of the system property providing information about the context in which code is currently executing.static final StringHolds the string that will be returned by the system property forPROPERTY_IMAGE_CODE_KEYif code is executing at image runtime.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanReturns true if (at the time of the call) code is executing at image runtime.
- 
Field Details- 
PROPERTY_IMAGE_CODE_KEYHolds 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 buildtime the code is executing in the context of image building (e.g. in a static initializer of a class that will be contained in the image). If the property returns the string given byPROPERTY_IMAGE_CODE_VALUE_RUNTIMEthe code is executing at image runtime. Otherwise, the property is not set.- See Also:
 
- 
PROPERTY_IMAGE_CODE_VALUE_RUNTIMEHolds the string that will be returned by the system property forPROPERTY_IMAGE_CODE_KEYif code is executing at image runtime.- See Also:
 
 
- 
- 
Method Details- 
inImageRuntimeCodepublic 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.- Returns:
- true if this app runs in a native image runtime
 
 
-