public enum V8ContextType extends java.lang.Enum<V8ContextType>
| Enum Constant and Description |
|---|
Await
The V8 Await context type.
|
Block
The V8 Block context type.
|
Catch
The V8 Catch context type.
|
DebugEvaluate
The V8 DebugEvaluate context type.
|
Declaration
The V8 Declaration context type.
|
Eval
The V8 Eval context type.
|
Function
The V8 Function context type.
|
Module
The V8 Module context type.
|
Script
The V8 Script context type.
|
With
The V8 With context type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Gets the type ID.
|
java.lang.String |
getName()
Gets the type name.
|
static V8ContextType |
parse(int id)
Parse V8 context type by ID.
|
static V8ContextType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static V8ContextType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final V8ContextType Await
public static final V8ContextType Block
public static final V8ContextType Catch
public static final V8ContextType DebugEvaluate
public static final V8ContextType Declaration
public static final V8ContextType Eval
public static final V8ContextType Function
public static final V8ContextType Module
public static final V8ContextType Script
public static final V8ContextType With
public static V8ContextType[] values()
for (V8ContextType c : V8ContextType.values()) System.out.println(c);
public static V8ContextType 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 static V8ContextType parse(int id)
id - the idpublic int getId()
public java.lang.String getName()