|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JSTypeNative>
com.google.javascript.rhino.jstype.JSTypeNative
public enum JSTypeNative
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)
.
Method Summary | |
---|---|
static JSTypeNative |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JSTypeNative ARRAY_TYPE
public static final JSTypeNative ARRAY_FUNCTION_TYPE
public static final JSTypeNative BOOLEAN_TYPE
public static final JSTypeNative BOOLEAN_OBJECT_TYPE
public static final JSTypeNative BOOLEAN_OBJECT_FUNCTION_TYPE
public static final JSTypeNative CHECKED_UNKNOWN_TYPE
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.
public static final JSTypeNative DATE_TYPE
public static final JSTypeNative DATE_FUNCTION_TYPE
public static final JSTypeNative ERROR_FUNCTION_TYPE
public static final JSTypeNative ERROR_TYPE
public static final JSTypeNative EVAL_ERROR_FUNCTION_TYPE
public static final JSTypeNative EVAL_ERROR_TYPE
public static final JSTypeNative FUNCTION_FUNCTION_TYPE
public static final JSTypeNative FUNCTION_INSTANCE_TYPE
public static final JSTypeNative FUNCTION_PROTOTYPE
public static final JSTypeNative NULL_TYPE
public static final JSTypeNative NUMBER_TYPE
public static final JSTypeNative NUMBER_OBJECT_TYPE
public static final JSTypeNative NUMBER_OBJECT_FUNCTION_TYPE
public static final JSTypeNative OBJECT_TYPE
public static final JSTypeNative OBJECT_FUNCTION_TYPE
public static final JSTypeNative OBJECT_PROTOTYPE
public static final JSTypeNative RANGE_ERROR_FUNCTION_TYPE
public static final JSTypeNative RANGE_ERROR_TYPE
public static final JSTypeNative REFERENCE_ERROR_FUNCTION_TYPE
public static final JSTypeNative REFERENCE_ERROR_TYPE
public static final JSTypeNative REGEXP_TYPE
public static final JSTypeNative REGEXP_FUNCTION_TYPE
public static final JSTypeNative STRING_OBJECT_TYPE
public static final JSTypeNative STRING_OBJECT_FUNCTION_TYPE
public static final JSTypeNative STRING_TYPE
public static final JSTypeNative SYNTAX_ERROR_FUNCTION_TYPE
public static final JSTypeNative SYNTAX_ERROR_TYPE
public static final JSTypeNative TYPE_ERROR_FUNCTION_TYPE
public static final JSTypeNative TYPE_ERROR_TYPE
public static final JSTypeNative UNKNOWN_TYPE
public static final JSTypeNative URI_ERROR_FUNCTION_TYPE
public static final JSTypeNative URI_ERROR_TYPE
public static final JSTypeNative VOID_TYPE
public static final JSTypeNative TOP_LEVEL_PROTOTYPE
public static final JSTypeNative STRING_VALUE_OR_OBJECT_TYPE
public static final JSTypeNative NUMBER_VALUE_OR_OBJECT_TYPE
public static final JSTypeNative ALL_TYPE
public static final JSTypeNative NO_TYPE
public static final JSTypeNative NO_OBJECT_TYPE
public static final JSTypeNative NO_RESOLVED_TYPE
public static final JSTypeNative GLOBAL_THIS
public static final JSTypeNative U2U_CONSTRUCTOR_TYPE
public static final JSTypeNative U2U_FUNCTION_TYPE
public static final JSTypeNative LEAST_FUNCTION_TYPE
public static final JSTypeNative GREATEST_FUNCTION_TYPE
public static final JSTypeNative OBJECT_NUMBER_STRING
public static final JSTypeNative OBJECT_NUMBER_STRING_BOOLEAN
public static final JSTypeNative NUMBER_STRING_BOOLEAN
public static final JSTypeNative NUMBER_STRING
Method Detail |
---|
public static JSTypeNative[] values()
for (JSTypeNative c : JSTypeNative.values()) System.out.println(c);
public static JSTypeNative valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |