| Modifier and Type | Class and Description |
|---|---|
| protected static enum | GraalImageCode.
A privileged action to resolve the image code via the current JVM processes input arguments, if available. |
| Modifier and Type | Field and Description |
|---|---|
| public static final GraalImageCode | AGENT
Indicates that a Graal VM assisted configuration agent is running. |
| public static final GraalImageCode | BUILD
Indicates that a Graal VM native image build is executed. |
| private static GraalImageCode | current
The current image code or |
| private final boolean | defined
|
| private final boolean | nativeImageExecution
|
| public static final GraalImageCode | NONE
Indicates that no Graal VM property is set. |
| public static final GraalImageCode | RUNTIME
Indicates that a Graal VM native image is being executed. |
| public static final GraalImageCode | UNKNOWN
Indicates that a Graal VM property is set to an unknown value. |
| Access | Constructor and Description |
|---|---|
| private | GraalImageCode(boolean
true if this image code indicates that a valid Graal related property is set.true if this image code indicates that a Graal native image build is executed.Creates a new Graal image code. |
| Modifier and Type | Method and Description |
|---|---|
| private static < The type of the action's resolved value. T> T | Returns: The action's resolved value.The action to execute from a privileged context. action)A proxy for |
| public static GraalImageCode | Returns: The status of the Graal image code.Resolves the status of the Graal image code. |
| public boolean | Returns: true if this image code indicates that a valid Graal related property is set.Returns |
| public boolean | Returns: true if this image code indicates that a Graal native image build is executed.Returns |
| public < The array component type. T> T[] | Returns: The supplied array, potentially sorted.The values to sort. value, Comparator<? super T> the comparator to use. comparator)Sorts the provided values only if an active Graal image code is set. |
| public static GraalImageCode | |
| public static GraalImageCode[] |
| AGENT | back to summary |
|---|---|
| public static final GraalImageCode AGENT Indicates that a Graal VM assisted configuration agent is running. | |
| BUILD | back to summary |
|---|---|
| public static final GraalImageCode BUILD Indicates that a Graal VM native image build is executed. | |
| current | back to summary |
|---|---|
| private static GraalImageCode current The current image code or | |
| defined | back to summary |
|---|---|
| private final boolean defined
| |
| nativeImageExecution | back to summary |
|---|---|
| private final boolean nativeImageExecution
| |
| NONE | back to summary |
|---|---|
| public static final GraalImageCode NONE Indicates that no Graal VM property is set. | |
| RUNTIME | back to summary |
|---|---|
| public static final GraalImageCode RUNTIME Indicates that a Graal VM native image is being executed. | |
| UNKNOWN | back to summary |
|---|---|
| public static final GraalImageCode UNKNOWN Indicates that a Graal VM property is set to an unknown value. | |
| GraalImageCode | back to summary |
|---|---|
| private GraalImageCode(boolean defined, boolean nativeImageExecution) Creates a new Graal image code.
| |
| doPrivileged | back to summary |
|---|---|
| private static <T> T doPrivileged(PrivilegedAction<T> action) A proxy for
| |
| getCurrent | back to summary |
|---|---|
| public static GraalImageCode getCurrent() Resolves the status of the Graal image code.
| |
| isDefined | back to summary |
|---|---|
| public boolean isDefined() Returns
| |
| isNativeImageExecution | back to summary |
|---|---|
| public boolean isNativeImageExecution() Returns
| |
| sorted | back to summary |
|---|---|
| public <T> T[] sorted(T[] value, Comparator<? super T> comparator) Sorts the provided values only if an active Graal image code is set.
| |
| valueOf | back to summary |
|---|---|
| public static GraalImageCode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static GraalImageCode[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final GraalImageCode. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public GraalImageCode | |
| public static GraalImageCode. | |
| public static GraalImageCode. |
| INSTANCE | back to summary |
|---|---|
| public static final GraalImageCode. The singleton instance. | |
| ImageCodeContextAction | back to summary |
|---|---|
| private ImageCodeContextAction() | |
| run | back to summary |
|---|---|
| public GraalImageCode run() Implements java. Doc from java. Performs the computation. This method will be called by
| |
| valueOf | back to summary |
|---|---|
| public static GraalImageCode. | |
| values | back to summary |
|---|---|
| public static GraalImageCode. | |