public enum GraalImageCode extends Enum<GraalImageCode>
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. |
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 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–2021. All rights reserved.