public enum TypeCategory extends Enum<TypeCategory>
These are used in Cast checking and array implementation.
Enum Constant and Description |
---|
TYPE_JAVA_LANG_OBJECT |
TYPE_JAVA_LANG_STRING |
TYPE_JAVA_OBJECT |
TYPE_JAVA_OBJECT_OR_JSO |
TYPE_JS_INTERFACE |
TYPE_JSO |
TYPE_PRIMITIVE_BOOLEAN |
TYPE_PRIMITIVE_LONG |
TYPE_PRIMITIVE_NUMBER |
Modifier and Type | Method and Description |
---|---|
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.
|
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_JAVA_LANG_OBJECT
public static final TypeCategory TYPE_JAVA_LANG_STRING
public static final TypeCategory TYPE_JS_INTERFACE
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 static TypeCategory typeCategoryForType(JType type, JProgram program)
Copyright © 2018. All rights reserved.