public enum TypeCategory extends Enum<TypeCategory>
These are used in Cast checking and array implementation.
Modifier and Type | Method and Description |
---|---|
String |
castInstanceOfQualifier() |
boolean |
requiresJsConstructor() |
boolean |
requiresTypeId() |
static TypeCategory |
typeCategoryForType(JType type,
JProgram program)
Determines the type category for a specific type.
|
static TypeCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf, valueOf
$isInstance
public static final TypeCategory TYPE_JAVA_OBJECT
public static final TypeCategory TYPE_JAVA_OBJECT_OR_JSO
public static final TypeCategory TYPE_JSO
public static final TypeCategory TYPE_ARRAY
public static final TypeCategory TYPE_JSO_ARRAY
public static final TypeCategory TYPE_JAVA_LANG_OBJECT
public static final TypeCategory TYPE_JAVA_LANG_STRING
public static final TypeCategory TYPE_JAVA_LANG_DOUBLE
public static final TypeCategory TYPE_JAVA_LANG_BOOLEAN
public static final TypeCategory TYPE_JS_NATIVE
public static final TypeCategory TYPE_JS_UNKNOWN_NATIVE
public static final TypeCategory TYPE_JS_FUNCTION
public static final TypeCategory TYPE_JS_OBJECT
public static final TypeCategory TYPE_JS_ARRAY
public static final TypeCategory TYPE_PRIMITIVE_LONG
public static final TypeCategory TYPE_PRIMITIVE_NUMBER
public static final TypeCategory TYPE_PRIMITIVE_BOOLEAN
public static TypeCategory[] values()
for (TypeCategory c : TypeCategory.values()) System.out.println(c);
public static TypeCategory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String castInstanceOfQualifier()
public boolean requiresTypeId()
public boolean requiresJsConstructor()
public static TypeCategory typeCategoryForType(JType type, JProgram program)
Copyright © 2018. All rights reserved.