public enum JSScopeType extends java.lang.Enum<JSScopeType>
Enum Constant and Description |
---|
Block |
Catch |
Class |
Eval |
Function |
Module |
Script |
Unknown |
With |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
java.lang.String |
getName() |
boolean |
isBlock() |
boolean |
isCatch() |
boolean |
isClass() |
boolean |
isEval() |
boolean |
isFunction() |
boolean |
isModule() |
boolean |
isScript() |
boolean |
isWith() |
static JSScopeType |
parse(int id) |
static JSScopeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSScopeType Class
public static final JSScopeType Eval
public static final JSScopeType Function
public static final JSScopeType Module
public static final JSScopeType Script
public static final JSScopeType Catch
public static final JSScopeType Block
public static final JSScopeType With
public static final JSScopeType Unknown
public static JSScopeType[] values()
for (JSScopeType c : JSScopeType.values()) System.out.println(c);
public static JSScopeType 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 JSScopeType parse(int id)
public int getId()
public java.lang.String getName()
public boolean isBlock()
public boolean isCatch()
public boolean isClass()
public boolean isEval()
public boolean isFunction()
public boolean isModule()
public boolean isScript()
public boolean isWith()