public enum BrowserComponent.JSType

  1. Object
  2. Enum<BrowserComponent.JSType>
  3. BrowserComponent.JSType

ImplementsComparable<BrowserComponent.JSType>

Enum with the possible types for a JSRef object.

Enum constants

OBJECT
FUNCTION
NUMBER
STRING
UNDEFINED
BOOLEAN

Methods

public static BrowserComponent.JSType[] values()
public static BrowserComponent.JSType valueOf(String name)
public static BrowserComponent.JSType get(String type)Gets the corresponding JSType for the given string type.

Inherited methods

Enum constant details

OBJECT

OBJECT

FUNCTION

FUNCTION

NUMBER

NUMBER

STRING

STRING

UNDEFINED

UNDEFINED

BOOLEAN

BOOLEAN

Method details

values

public static BrowserComponent.JSType[] values()

valueOf

public static BrowserComponent.JSType valueOf(String name)

get

public static BrowserComponent.JSType get(String type)
Gets the corresponding JSType for the given string type.

Parameters

type String
The string type as returned by the typeof operator. Possible input values are ‘object’, ‘function’, ’number’, ‘boolean’, and ‘undefined’

Returns

the enum corresponding to the type