Enum JSTypeNative
- All Implemented Interfaces:
Serializable
,Comparable<JSTypeNative>
,java.lang.constant.Constable
Constants corresponding to types that are built into a JavaScript engine
and other types that occur very often in the type system. See
JSTypeRegistry.getNativeType(JSTypeNative)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA checked unknown type is a type that we know something about, but we're not really sure what we know about it.(null, void)(number,string)(number,string,boolean)(Object,number,string)(Object,number,string,boolean) -
Method Summary
Modifier and TypeMethodDescriptionstatic JSTypeNative
Returns the enum constant of this type with the specified name.static JSTypeNative[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ARRAY_TYPE
-
ARRAY_FUNCTION_TYPE
-
BOOLEAN_TYPE
-
BOOLEAN_OBJECT_TYPE
-
BOOLEAN_OBJECT_FUNCTION_TYPE
-
CHECKED_UNKNOWN_TYPE
A checked unknown type is a type that we know something about, but we're not really sure what we know about it. Examples of checked unknown types include:if (x) { // x is unknown alert(x); // x is checked unknown }
/* @param {SomeForwardDeclaredType} x / function f(x) { // x is checked unknown. We know it's some type, but the type // has not been included in this binary. }
This is useful for missing property warnings, where we don't want to emit warnings on things that have been checked. -
DATE_TYPE
-
DATE_FUNCTION_TYPE
-
ERROR_FUNCTION_TYPE
-
ERROR_TYPE
-
EVAL_ERROR_FUNCTION_TYPE
-
EVAL_ERROR_TYPE
-
FUNCTION_FUNCTION_TYPE
-
FUNCTION_INSTANCE_TYPE
-
FUNCTION_PROTOTYPE
-
NULL_TYPE
-
NUMBER_TYPE
-
NUMBER_OBJECT_TYPE
-
NUMBER_OBJECT_FUNCTION_TYPE
-
OBJECT_TYPE
-
OBJECT_FUNCTION_TYPE
-
OBJECT_PROTOTYPE
-
RANGE_ERROR_FUNCTION_TYPE
-
RANGE_ERROR_TYPE
-
REFERENCE_ERROR_FUNCTION_TYPE
-
REFERENCE_ERROR_TYPE
-
REGEXP_TYPE
-
REGEXP_FUNCTION_TYPE
-
STRING_OBJECT_TYPE
-
STRING_OBJECT_FUNCTION_TYPE
-
STRING_TYPE
-
SYNTAX_ERROR_FUNCTION_TYPE
-
SYNTAX_ERROR_TYPE
-
TYPE_ERROR_FUNCTION_TYPE
-
TYPE_ERROR_TYPE
-
UNKNOWN_TYPE
-
URI_ERROR_FUNCTION_TYPE
-
URI_ERROR_TYPE
-
VOID_TYPE
-
TOP_LEVEL_PROTOTYPE
-
STRING_VALUE_OR_OBJECT_TYPE
-
NUMBER_VALUE_OR_OBJECT_TYPE
-
ALL_TYPE
-
NO_TYPE
-
NO_OBJECT_TYPE
-
NO_RESOLVED_TYPE
-
GLOBAL_THIS
-
U2U_CONSTRUCTOR_TYPE
-
U2U_FUNCTION_TYPE
-
LEAST_FUNCTION_TYPE
-
GREATEST_FUNCTION_TYPE
-
NULL_VOID
(null, void) -
OBJECT_NUMBER_STRING
(Object,number,string) -
OBJECT_NUMBER_STRING_BOOLEAN
(Object,number,string,boolean) -
NUMBER_STRING_BOOLEAN
(number,string,boolean) -
NUMBER_STRING
(number,string)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-