public enum JSFunctionType extends java.lang.Enum<JSFunctionType>
Enum Constant and Description |
---|
API
API.
|
Native
Native.
|
Unknown
Unknown.
|
UserDefined
User defined.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Gets id.
|
java.lang.String |
getName()
Gets name.
|
boolean |
isAPI()
Is API.
|
boolean |
isNative()
Is native.
|
boolean |
isUserDefined()
Is user.
|
static JSFunctionType |
parse(int id)
Parse JS function type by id.
|
static JSFunctionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JSFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSFunctionType Native
public static final JSFunctionType API
public static final JSFunctionType UserDefined
public static final JSFunctionType Unknown
public static JSFunctionType[] values()
for (JSFunctionType c : JSFunctionType.values()) System.out.println(c);
public static JSFunctionType 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 JSFunctionType parse(int id)
id
- the idpublic int getId()
public java.lang.String getName()
public boolean isAPI()
public boolean isNative()
public boolean isUserDefined()