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