if (binding.isClass()) {
type = new JClassType(info, name, binding.isAbstract(), binding.isFinal(), interopType);
JsInteropUtil.maybeSetJsPrototypeFlag(x, (JClassType) type);
} else if (binding.isInterface() || binding.isAnnotationType()) {
type = new JInterfaceType(info, name, interopType, jsPrototype);
} else if (binding.isEnum()) {
if (binding.isAnonymousType()) {
// Don't model an enum subclass as a JEnumType.
type = new JClassType(info, name, false, true, interopType);
} else {