Enum JSTypeNative
- java.lang.Object
-
- java.lang.Enum<JSTypeNative>
-
- com.google.javascript.rhino.jstype.JSTypeNative
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JSTypeNative>
public enum JSTypeNative extends java.lang.Enum<JSTypeNative>
Constants corresponding to types that are built into a JavaScript engine and other types that occur very often in the type system. SeeJSTypeRegistry.getNativeType(JSTypeNative)
.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSTypeNative
valueOf(java.lang.String name)
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 Detail
-
ARRAY_TYPE
public static final JSTypeNative ARRAY_TYPE
-
ARRAY_FUNCTION_TYPE
public static final JSTypeNative ARRAY_FUNCTION_TYPE
-
ASYNC_ITERABLE_FUNCTION_TYPE
public static final JSTypeNative ASYNC_ITERABLE_FUNCTION_TYPE
-
ASYNC_ITERABLE_TYPE
public static final JSTypeNative ASYNC_ITERABLE_TYPE
-
ASYNC_ITERATOR_FUNCTION_TYPE
public static final JSTypeNative ASYNC_ITERATOR_FUNCTION_TYPE
-
ASYNC_ITERATOR_TYPE
public static final JSTypeNative ASYNC_ITERATOR_TYPE
-
ASYNC_GENERATOR_FUNCTION_TYPE
public static final JSTypeNative ASYNC_GENERATOR_FUNCTION_TYPE
-
ASYNC_GENERATOR_TYPE
public static final JSTypeNative ASYNC_GENERATOR_TYPE
-
BIGINT_TYPE
public static final JSTypeNative BIGINT_TYPE
-
BIGINT_OBJECT_TYPE
public static final JSTypeNative BIGINT_OBJECT_TYPE
-
BIGINT_OBJECT_FUNCTION_TYPE
public static final JSTypeNative BIGINT_OBJECT_FUNCTION_TYPE
-
BOOLEAN_TYPE
public static final JSTypeNative BOOLEAN_TYPE
-
BOOLEAN_OBJECT_TYPE
public static final JSTypeNative BOOLEAN_OBJECT_TYPE
-
BOOLEAN_OBJECT_FUNCTION_TYPE
public static final JSTypeNative BOOLEAN_OBJECT_FUNCTION_TYPE
-
CHECKED_UNKNOWN_TYPE
public static final JSTypeNative 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
public static final JSTypeNative DATE_TYPE
-
DATE_FUNCTION_TYPE
public static final JSTypeNative DATE_FUNCTION_TYPE
-
FUNCTION_TYPE
public static final JSTypeNative FUNCTION_TYPE
-
FUNCTION_FUNCTION_TYPE
public static final JSTypeNative FUNCTION_FUNCTION_TYPE
-
FUNCTION_PROTOTYPE
public static final JSTypeNative FUNCTION_PROTOTYPE
-
GENERATOR_FUNCTION_TYPE
public static final JSTypeNative GENERATOR_FUNCTION_TYPE
-
GENERATOR_TYPE
public static final JSTypeNative GENERATOR_TYPE
-
I_ITERABLE_RESULT_FUNCTION_TYPE
public static final JSTypeNative I_ITERABLE_RESULT_FUNCTION_TYPE
-
I_ITERABLE_RESULT_TYPE
public static final JSTypeNative I_ITERABLE_RESULT_TYPE
-
ITERABLE_FUNCTION_TYPE
public static final JSTypeNative ITERABLE_FUNCTION_TYPE
-
ITERABLE_TYPE
public static final JSTypeNative ITERABLE_TYPE
-
ITERATOR_FUNCTION_TYPE
public static final JSTypeNative ITERATOR_FUNCTION_TYPE
-
ITERATOR_TYPE
public static final JSTypeNative ITERATOR_TYPE
-
I_ARRAY_LIKE_FUNCTION_TYPE
public static final JSTypeNative I_ARRAY_LIKE_FUNCTION_TYPE
-
I_ARRAY_LIKE_TYPE
public static final JSTypeNative I_ARRAY_LIKE_TYPE
-
I_TEMPLATE_ARRAY_TYPE
public static final JSTypeNative I_TEMPLATE_ARRAY_TYPE
-
I_OBJECT_FUNCTION_TYPE
public static final JSTypeNative I_OBJECT_FUNCTION_TYPE
-
I_OBJECT_TYPE
public static final JSTypeNative I_OBJECT_TYPE
-
I_THENABLE_FUNCTION_TYPE
public static final JSTypeNative I_THENABLE_FUNCTION_TYPE
-
I_THENABLE_TYPE
public static final JSTypeNative I_THENABLE_TYPE
-
NULL_TYPE
public static final JSTypeNative NULL_TYPE
-
NUMBER_TYPE
public static final JSTypeNative NUMBER_TYPE
-
NUMBER_OBJECT_TYPE
public static final JSTypeNative NUMBER_OBJECT_TYPE
-
NUMBER_OBJECT_FUNCTION_TYPE
public static final JSTypeNative NUMBER_OBJECT_FUNCTION_TYPE
-
PROMISE_TYPE
public static final JSTypeNative PROMISE_TYPE
-
PROMISE_FUNCTION_TYPE
public static final JSTypeNative PROMISE_FUNCTION_TYPE
-
OBJECT_TYPE
public static final JSTypeNative OBJECT_TYPE
-
OBJECT_FUNCTION_TYPE
public static final JSTypeNative OBJECT_FUNCTION_TYPE
-
OBJECT_PROTOTYPE
public static final JSTypeNative OBJECT_PROTOTYPE
-
REGEXP_TYPE
public static final JSTypeNative REGEXP_TYPE
-
REGEXP_FUNCTION_TYPE
public static final JSTypeNative REGEXP_FUNCTION_TYPE
-
STRING_OBJECT_TYPE
public static final JSTypeNative STRING_OBJECT_TYPE
-
STRING_OBJECT_FUNCTION_TYPE
public static final JSTypeNative STRING_OBJECT_FUNCTION_TYPE
-
STRING_TYPE
public static final JSTypeNative STRING_TYPE
-
SYMBOL_OBJECT_TYPE
public static final JSTypeNative SYMBOL_OBJECT_TYPE
-
SYMBOL_OBJECT_FUNCTION_TYPE
public static final JSTypeNative SYMBOL_OBJECT_FUNCTION_TYPE
-
SYMBOL_TYPE
public static final JSTypeNative SYMBOL_TYPE
-
THENABLE_TYPE
public static final JSTypeNative THENABLE_TYPE
-
UNKNOWN_TYPE
public static final JSTypeNative UNKNOWN_TYPE
-
VOID_TYPE
public static final JSTypeNative VOID_TYPE
-
ALL_TYPE
public static final JSTypeNative ALL_TYPE
-
NO_TYPE
public static final JSTypeNative NO_TYPE
-
NO_OBJECT_TYPE
public static final JSTypeNative NO_OBJECT_TYPE
-
NO_RESOLVED_TYPE
public static final JSTypeNative NO_RESOLVED_TYPE
-
GLOBAL_THIS
public static final JSTypeNative GLOBAL_THIS
-
LEAST_FUNCTION_TYPE
public static final JSTypeNative LEAST_FUNCTION_TYPE
-
GREATEST_FUNCTION_TYPE
public static final JSTypeNative GREATEST_FUNCTION_TYPE
-
NULL_VOID
public static final JSTypeNative NULL_VOID
(null, void)
-
NUMBER_STRING_BOOLEAN
public static final JSTypeNative NUMBER_STRING_BOOLEAN
(number,string,boolean)
-
VALUE_TYPES
public static final JSTypeNative VALUE_TYPES
(number,string,boolean,symbol)
-
NUMBER_SYMBOL
public static final JSTypeNative NUMBER_SYMBOL
(number,symbol)
-
STRING_SYMBOL
public static final JSTypeNative STRING_SYMBOL
(string,symbol)
-
NUMBER_STRING
public static final JSTypeNative NUMBER_STRING
(number,string)
-
NUMBER_STRING_SYMBOL
public static final JSTypeNative NUMBER_STRING_SYMBOL
(number,string,symbol)
-
BIGINT_NUMBER
public static final JSTypeNative BIGINT_NUMBER
(bigint,number)
-
BIGINT_NUMBER_OBJECT
public static final JSTypeNative BIGINT_NUMBER_OBJECT
(BigInt,Number)
-
BIGINT_NUMBER_STRING
public static final JSTypeNative BIGINT_NUMBER_STRING
(bigint,number,string)
-
BIGINT_NUMBER_STRING_OBJECT
public static final JSTypeNative BIGINT_NUMBER_STRING_OBJECT
(Bigint,Number,String)
-
-
Method Detail
-
values
public static JSTypeNative[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JSTypeNative c : JSTypeNative.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JSTypeNative valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-