public enum JSRuntimeType extends java.lang.Enum<JSRuntimeType>
Enum Constant and Description |
---|
Node
Node.js.
|
NodeI18n
Node.js with i18n.
|
V8
V8.
|
V8I18n
V8 with i18n.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets name.
|
<Options extends RuntimeOptions<?>> |
getRuntimeOptions()
Gets runtime options.
|
java.lang.String |
getVersion()
Gets version.
|
boolean |
isI18nEnabled()
Is i18n enabled.
|
boolean |
isNode()
Is Node.js mode.
|
boolean |
isRuntimeOptionsValid(RuntimeOptions<?> runtimeOptions)
Is runtime options valid.
|
boolean |
isV8()
Is V8 mode.
|
java.lang.String |
toString() |
static JSRuntimeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSRuntimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSRuntimeType Node
public static final JSRuntimeType NodeI18n
public static final JSRuntimeType V8
public static final JSRuntimeType V8I18n
public static JSRuntimeType[] values()
for (JSRuntimeType c : JSRuntimeType.values()) System.out.println(c);
public static JSRuntimeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public <Options extends RuntimeOptions<?>> Options getRuntimeOptions()
Options
- the type parameterpublic java.lang.String getVersion()
public boolean isI18nEnabled()
public boolean isNode()
public boolean isRuntimeOptionsValid(RuntimeOptions<?> runtimeOptions)
runtimeOptions
- the runtime optionspublic boolean isV8()
public java.lang.String toString()
toString
in class java.lang.Enum<JSRuntimeType>