Home
last modified time | relevance | path

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

/tools/metalava/src/main/java/com/android/tools/metalava/
DStubWriter.kt229 val removeAbstract = cls.modifiers.isAbstract() && (cls.isEnum() || cls.isAnnotationType()) in visitClass()
236 cls.isEnum() -> writer.print("enum") in visitClass()
250 if (cls.isEnum()) { in visitClass()
342 if (cls.isEnum() || cls.isAnnotationType()) { in generateSuperClassStatement()
514 val isEnum = containingClass.isEnum() in writeMethod() constant
517 if (isEnum && (method.name() == "values" || in writeMethod()
532 … val removeAbstract = modifiers.isAbstract() && (isEnum || isAnnotation) || movedFromInterface in writeMethod()
559 …if (modifiers.isAbstract() && !removeAbstract && !isEnum || isAnnotation || modifiers.isNative()) { in writeMethod()
DCompatibilityCheck.kt234 if (!new.isEnum()) { in compare()
430 if (!new.containingClass().isEnum() && !oldModifiers.isStatic()) { in compare()
763 new.parameters().size == 1) && new.containingClass().isEnum() in added()
DSignatureWriter.kt159 …} else if (!compatibility.classForEnums && cls.isEnum()) { // compat mode calls enums "class" inst… in <lambda>()
191 if (!compatibility.classForEnums && cls.isEnum() || cls.isAnnotationType()) { in <lambda>()
DJDiffXmlWriter.kt116 if (cls.isEnum() && compatibility.defaultEnumMethods) { in <lambda>()
304 cls.isEnum() -> JAVA_LANG_ENUM in <lambda>()
DNullabilityAnnotationsValidator.kt227 containingClass().isEnum() && name() == "valueOf" && parameters().map { in MethodItem()
DApiLint.kt361 if (cls.isEnum()) { in <lambda>()
2892 if (item.name() == "values" && item.containingClass().isEnum()) { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt41 private var isEnum: Boolean = false, variable
94 override fun isEnum(): Boolean = isEnum in isInterface() method
109 fun setIsEnum(isEnum: Boolean) { in setIsEnum()
110 this.isEnum = isEnum in setIsEnum()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt292 … if (list.isStatic() && (compatibility.staticEnums || classItem == null || !classItem.isEnum())) { in write()
299 (classItem?.isEnum() != true || compatibility.finalInInterfaces) || in write()
301 methodItem?.name() == "values" && methodItem.containingClass().isEnum() in write()
332 (classItem?.isEnum() != true && in write()
376 (classItem?.isEnum() != true && in write()
387 … if (list.isStatic() && (compatibility.staticEnums || classItem == null || !classItem.isEnum())) { in write()
394 (classItem?.isEnum() != true || compatibility.finalInInterfaces) in write()
DClassItem.kt115 isEnum() -> qualifiedName == JAVA_LANG_ENUM in <lambda>()
181 fun isEnum(): Boolean in <lambda>() method
184 fun isClass(): Boolean = !isInterface() && !isAnnotationType() && !isEnum() in <lambda>()
263 if (isEnum()) { in <lambda>()
795 if (cls.isEnum()) {
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DApiFile.java158 boolean isEnum = false; in parseClass()
183 isEnum = true; in parseClass()
205 cl = new TextClassItem(api, tokenizer.pos(), modifiers, isInterface, isEnum, isAnnotation, in parseClass()
461 …d parseField(TextCodebase api, Tokenizer tokenizer, TextClassItem cl, String token, boolean isEnum) in parseField() argument
493 if (isEnum) { in parseField()
DTextCodebase.kt142 cl.isEnum() -> JAVA_LANG_ENUM in resolveSuperclasses()
394 textClass.isEnum(), in computeDelta()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DClassType.kt34 psiClass.isEnum -> ENUM in getClassType()
DPsiClassItem.kt69 override fun isEnum(): Boolean = classType == ClassType.ENUM in <lambda>() method
609 …onstructors.isEmpty() && !psiClass.isInterface && !psiClass.isAnnotationType && !psiClass.isEnum) { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAddApisFromCodebase.kt88 } else if (cls.isEnum()) { in addApisFromCodebase()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DOptionSetter.java121 if (cType.isEnum()) { in getHandler()
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java170 if (cType.isEnum()) { in getHandler()