Home
last modified time | relevance | path

Searched refs:isEnum (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java111 private boolean isEnum; field in ObjectStreamClass
448 isEnum = Enum.class.isAssignableFrom(cl); in ObjectStreamClass()
459 if (isEnum) { in ObjectStreamClass()
513 if (isEnum) { in ObjectStreamClass()
581 isEnum = model.isEnum; in initNonProxy()
596 if (isEnum != localDesc.isEnum) { in initNonProxy()
597 throw new InvalidClassException(isEnum ? in initNonProxy()
619 if (!isEnum) { in initNonProxy()
678 isEnum = ((flags & ObjectStreamConstants.SC_ENUM) != 0); in readNonProxy()
679 if (isEnum && suid.longValue() != 0L) { in readNonProxy()
[all …]
DObjectInputStream.java1727 if (!desc.isEnum()) { in readEnum()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DReflectionTest.java346 assertTrue(trafficClass.isEnum()); in testClassIsEnum()
347 assertTrue(redClass.isEnum()); in testClassIsEnum()
348 assertFalse(yellowClass.isEnum()); in testClassIsEnum()
349 assertFalse(greenClass.isEnum()); in testClassIsEnum()
/libcore/ojluni/src/main/java/java/lang/
DEnum.java261 if (!enumType.isEnum()) {
DClass.java2260 public boolean isEnum() { in isEnum() method in Class
2290 if (!isEnum()) return null; in getEnumConstantsShared()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java570 assertFalse(PublicTestClass.class.isEnum()); in test_isEnum()
571 assertFalse(ExtendTestClass.class.isEnum()); in test_isEnum()
572 assertTrue(TestEnum.ONE.getClass().isEnum()); in test_isEnum()
573 assertTrue(TestEnum.class.isEnum()); in test_isEnum()