public enum GraalImageCode extends Enum<GraalImageCode>
Modifier and Type | Class and Description |
---|---|
protected static class |
GraalImageCode.ImageCodeContextAction
A privileged action to resolve the image code via the current JVM processes input arguments, if available.
|
Enum Constant and Description |
---|
AGENT
Indicates that a Graal VM assisted configuration agent is running.
|
BUILD
Indicates that a Graal VM native image build is executed.
|
NONE
Indicates that no Graal VM property is set.
|
RUNTIME
Indicates that a Graal VM native image is being executed.
|
UNKNOWN
Indicates that a Graal VM property is set to an unknown value.
|
Modifier and Type | Method and Description |
---|---|
static GraalImageCode |
getCurrent()
Resolves the status of the Graal image code.
|
boolean |
isDefined()
Returns
true if this image code indicates that a valid Graal related property is set. |
boolean |
isNativeImageExecution()
Returns
true if this image code indicates that a Graal native image build is executed. |
<T> T[] |
sorted(T[] value,
Comparator<? super T> comparator)
Sorts the provided values only if an active Graal image code is set.
|
static GraalImageCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraalImageCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraalImageCode AGENT
public static final GraalImageCode BUILD
public static final GraalImageCode RUNTIME
public static final GraalImageCode UNKNOWN
public static final GraalImageCode NONE
public static GraalImageCode[] values()
for (GraalImageCode c : GraalImageCode.values()) System.out.println(c);
public static GraalImageCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static GraalImageCode getCurrent()
public <T> T[] sorted(T[] value, Comparator<? super T> comparator)
T
- The array component type.value
- The values to sort.comparator
- the comparator to use.public boolean isDefined()
true
if this image code indicates that a valid Graal related property is set.true
if this image code indicates that a valid Graal related property is set.public boolean isNativeImageExecution()
true
if this image code indicates that a Graal native image build is executed.true
if this image code indicates that a Graal native image build is executed.Copyright © 2014–2024. All rights reserved.