Home
last modified time | relevance | path

Searched refs:containingClass (Results 1 – 25 of 54) sorted by relevance

123

/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt48 var containingClass = method.containingClass in getApplicableUastTypes() variable
49 while (containingClass != null) { in getApplicableUastTypes()
50 …if (!containingClass.hasModifier(JvmModifier.PUBLIC) && !containingClass.hasModifier(JvmModifier.P… in getApplicableUastTypes()
53 containingClass = containingClass.containingClass in getApplicableUastTypes()
58 val className = method.containingClass!!.qualifiedName!! in getApplicableUastTypes()
61 containingClass = method.containingClass in getApplicableUastTypes()
62 while (containingClass != null) { in getApplicableUastTypes()
63 containingClasses += containingClass in getApplicableUastTypes()
64 containingClass = containingClass.containingClass in getApplicableUastTypes()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiAnalyzer.kt181 superConstructor.containingClass() != superClass && in <lambda>()
182 superConstructor.containingClass() != cls in <lambda>()
485 method.inheritedFrom = it.containingClass() in <lambda>()
562 val containingClass = cls.containingClass() in <lambda>() constant
568 if (cls.containingClass() != null) { in <lambda>()
573 } else if (containingClass != null) { in <lambda>()
574 if (containingClass.hidden) { in <lambda>()
576 …} else if (containingClass.originallyHidden && containingClass.modifiers.hasShowSingleAnnotation()… in <lambda>()
580 if (containingClass.docOnly) { in <lambda>()
583 if (containingClass.removed) { in <lambda>()
[all …]
DBaseline.kt36 import org.jetbrains.kotlin.psi.psiUtil.containingClass in <lambda>()
124 is MethodItem -> element.containingClass().qualifiedName() + "#" + in <lambda>()
126 is FieldItem -> element.containingClass().qualifiedName() + "#" + element.name() in <lambda>()
138 val containingClass = element.containingClass in <lambda>() constant
141 if (containingClass != null) { in <lambda>()
142 getBaselineKey(containingClass) + "#" + name + parameterList in <lambda>()
148 val containingClass = element.containingClass in <lambda>() constant
150 if (containingClass != null) { in <lambda>()
151 getBaselineKey(containingClass) + "#" + name in <lambda>()
157 val containingClass = element.containingClass() in <lambda>() constant
[all …]
DAnnotationsMerger.kt389 val containingClass = matcher.group(1) in <lambda>() constant
390 if (containingClass == null) { in <lambda>()
395 val classItem = codebase.findClass(containingClass) in <lambda>()
399 if (wellKnownIgnoredImport(containingClass)) { in <lambda>()
403 warning("Could not find class $containingClass; omitting annotation from merge") in <lambda>()
416 … mergeMethodOrParameter(item, containingClass, classItem, methodName, parameterIndex, parameters) in <lambda>()
419 mergeField(item, containingClass, classItem, fieldName) in <lambda>()
423 val containingClass = signature in <lambda>() constant
424 val classItem = codebase.findClass(containingClass) in <lambda>()
426 if (wellKnownIgnoredImport(containingClass)) { in <lambda>()
[all …]
DCompatibilityCheck.kt99 …if (oldMethod.containingClass().qualifiedName() != newMethod.containingClass().qualifiedName() || … in compareNullability()
423 new.containingClass().isAnnotationType() && in compare()
424 old.containingClass().isAnnotationType() && in compare()
447 new.containingClass().isAnnotationType() && old.defaultValue().isEmpty() in compare()
457 if (new.containingClass().isClass()) { in compare()
481 if (new.containingClass().isInterface() || new.containingClass().isAnnotationType()) { in compare()
497 if (!new.containingClass().isEnum() && !oldModifiers.isStatic()) { in compare()
635 newValue.containingClass?.qualifiedName + "." + newValue.name in compare()
759 is MethodItem -> base.findClass(item.containingClass().qualifiedName())?.findMethod( in findBaseItem()
764 … is FieldItem -> base.findClass(item.containingClass().qualifiedName())?.findField(item.name()) in findBaseItem()
[all …]
DDocAnalyzer.kt417 sb.append(field.containingClass().qualifiedName() + "." + field.name()) in <lambda>()
780 val containingClass = method.containingClass ?: return -1 in ApiLookup() constant
781 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup()
791 val containingClass = field.containingClass ?: return -1 in ApiLookup() constant
792 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup()
802 val containingClass = method.containingClass ?: return -1 in ApiLookup() constant
803 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup()
813 val containingClass = field.containingClass ?: return -1 in ApiLookup() constant
814 val owner = containingClass.qualifiedName ?: return -1 in ApiLookup()
DApiLint.kt225 item is MethodItem && !isInteresting(item.containingClass()) || in <lambda>()
226 item is FieldItem && !isInteresting(item.containingClass()) in <lambda>()
363 val containing = method.containingClass().qualifiedName() in <lambda>()
439 val qualified = field.containingClass().qualifiedName() in <lambda>()
506 val cls = method.containingClass() in <lambda>()
611 val className = field.containingClass().qualifiedName() in <lambda>()
626 else -> field.containingClass().containingPackage().qualifiedName() + ".action" in <lambda>()
638 val className = field.containingClass().qualifiedName() in <lambda>()
659 val packageName = field.containingClass().containingPackage().qualifiedName() in <lambda>()
769 val className = field.containingClass().qualifiedName() in <lambda>()
[all …]
DSdkFileWriter.kt83 when (resolved.containingClass().qualifiedName() + "." + resolved.name()) { in generate()
154 val containingClass = clazz?.containingClass() in generate() constant
155 var remove = containingClass == null || layouts.indexOf(containingClass) == -1 in generate()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiConstructorItem.kt37 containingClass: PsiClassItem,
51 containingClass = containingClass,
75 if (result.isEmpty() && isConstructor() && containingClass().superClass() != null) { in isImplicitConstructor()
104 return containingClass().psi() in psi()
113 containingClass: PsiClassItem, in create()
124 containingClass = containingClass, in create()
129 returnType = codebase.getType(containingClass.psiClass), in create()
139 containingClass: PsiClassItem, in createDefaultConstructor()
147 modifiers.setVisibilityLevel(containingClass.modifiers.getVisibilityLevel()) in createDefaultConstructor()
152 containingClass = containingClass, in createDefaultConstructor()
DPsiFieldItem.kt31 private val containingClass: PsiClassItem, constant in com.android.tools.metalava.model.psi.PsiFieldItem
69 override fun containingClass(): ClassItem = containingClass in isEnumConstant() method
73 val p = containingClass().psi() as? PsiClass ?: return false in isEnumConstant()
80 return psiField.containingClass != psiClass in isEnumConstant()
85 duplicated.inheritedFrom = containingClass in duplicate()
109 … return other is FieldItem && name == other.name() && containingClass == other.containingClass() in equals()
119 …fun create(codebase: PsiBasedCodebase, containingClass: PsiClassItem, psiField: PsiField): PsiFiel… in toString()
131 containingClass = containingClass, in toString()
DPsiMethodItem.kt48 private val containingClass: PsiClassItem, in <lambda>() constant in com.android.tools.metalava.model.psi.PsiMethodItem
84 override fun containingClass(): PsiClassItem = containingClass in <lambda>() method
157 val p = containingClass().psi() as? PsiClass ?: return false in <lambda>()
164 return psiMethod.containingClass != psiClass in <lambda>()
258 duplicated.inheritedFrom = containingClass in <lambda>()
371 containingClass: PsiClassItem, in <lambda>()
378 if (modifiers.isFinal() && containingClass.modifiers.isFinal()) { in <lambda>()
390 if (psiReturnType == null && containingClass.isEnum()) { in <lambda>()
392 psiReturnType = codebase.getClassType(containingClass.psiClass) in <lambda>()
394 psiReturnType = PsiArrayType(codebase.getClassType(containingClass.psiClass)) in <lambda>()
[all …]
DPsiPropertyItem.kt31 private val containingClass: PsiClassItem, constant in com.android.tools.metalava.model.psi.PsiPropertyItem
51 override fun containingClass(): ClassItem = containingClass in type() method
55 val p = containingClass().psi() as? PsiClass ?: return false in type()
62 return psiMethod.containingClass != psiClass in type()
69 … return other is FieldItem && name == other.name() && containingClass == other.containingClass() in equals()
100 containingClass: PsiClassItem, in toString()
117 containingClass = containingClass, in toString()
DPsiBasedCodebase.kt583 var curr = psiClass.containingClass in <lambda>()
588 val containing = curr?.containingClass in <lambda>()
644 while (top?.containingClass != null) { in <lambda>()
645 top = top.containingClass in <lambda>()
660 val containingClass = method.containingClass in <lambda>() constant
661 val cls = findOrCreateClass(containingClass!!) in <lambda>()
697 val containingClass = field.containingClass ?: return null in <lambda>() constant
698 val cls = findOrCreateClass(containingClass) in <lambda>()
DPsiClassItem.kt75 …override fun containingPackage(): PackageItem = containingClass?.containingPackage() ?: containing… in <lambda>()
99 private var containingClass: PsiClassItem? = null in <lambda>() variable
100 override fun containingClass(): PsiClassItem? = containingClass in <lambda>() method
246 if (psiClass.containingClass == null) { in <lambda>()
352 val replacementMap = mapTypeVariables(template.containingClass()) in <lambda>()
590 containingClass = item, in <lambda>()
609 inner.containingClass = item in <lambda>()
624 if (cls.containingClass == null) { in <lambda>()
634 curr.containingClass in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DMemberItem.kt27 fun containingClass(): ClassItem in name() method
29 override fun containingClass(strict: Boolean): ClassItem = containingClass() in name() method
30 …override fun containingPackage(strict: Boolean): PackageItem = containingClass().containingPackage… in name()
31 override fun parent(): ClassItem? = containingClass() in name()
39 containingClass().modifiers.isFinal() || in name()
40 containingClass().modifiers.isSealed() in name()
DClassItem.kt51 fun isInnerClass(): Boolean = containingClass() != null in <lambda>()
54 fun isTopLevelClass(): Boolean = containingClass() == null in <lambda>()
61 override fun parent(): Item? = containingClass() ?: containingPackage() in <lambda>()
70 while (curr?.containingClass() != null) { in <lambda>()
71 curr = curr.containingClass() in <lambda>()
84 while (curr?.containingClass() != null) { in <lambda>()
85 curr = curr.containingClass() in <lambda>()
204 fun containingClass(): ClassItem? in <lambda>() method
211 override fun containingClass(strict: Boolean): ClassItem? { in <lambda>() method
212 return if (strict) containingClass() else this in <lambda>()
DMethodItem.kt63 if (isConstructor() && containingClass().containingClass() != null && in <lambda>()
64 !containingClass().modifiers.isStatic() in <lambda>()
66 sb.append(containingClass().containingClass()?.toType()?.internalName() ?: "") in <lambda>()
530 return containingClass().isEnum() && in <lambda>()
DFieldItem.kt121 val qualifiedName1 = thisConstant.containingClass?.qualifiedName in <lambda>()
122 val qualifiedName2 = otherConstant.containingClass?.qualifiedName in <lambda>()
165 … ?: if (allowDefaultValue && !containingClass().isClass()) type().defaultValue() else null in <lambda>()
245 if (requireInitialValue && !containingClass().isClass()) { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextMethodItem.kt32 containingClass: TextClassItem,
37 codebase, name, containingClass, position,
55 if (containingClass() != other.containingClass()) { in equals()
91 var curr = containingClass().superClass() in isConstructor()
102 for (itf in containingClass().allInterfaces()) { in isConstructor()
125 return containingClass() as TextClassItem? in typeParameterList()
135 return (containingClass() as TextClassItem).resolveParameter(variable) in resolveParameter()
143 duplicated.inheritedFrom = containingClass() in duplicate()
DTextFieldItem.kt26 containingClass: TextClassItem,
31 ) : TextMemberItem(codebase, name, containingClass, position, modifiers), FieldItem {
45 return containingClass() == other.containingClass() in equals()
61 duplicated.inheritedFrom = containingClass() in hashCode()
DTextPropertyItem.kt26 containingClass: TextClassItem,
30 ) : TextMemberItem(codebase, name, containingClass, position, modifiers), PropertyItem {
44 return containingClass() == other.containingClass() in equals()
DTextClassItem.kt94 var containingClass: TextClassItem? = null in isInterface() variable
95 override fun containingClass(): ClassItem? = containingClass in isInterface() method
112 containingClass?.containingPackage() ?: containingPackage ?: error(this) in containingPackage()
146 return containingClass in typeParameterListOwnerParent()
DTextMemberItem.kt25 private val containingClass: TextClassItem, constant
31 override fun containingClass(): ClassItem = containingClass method
DTextCodebase.kt198 cl.containingClass = outerClass in resolveInnerClasses()
233 newClass.containingClass = outerClass in getOrCreateClass()
353 val cls = getOrAddClass(new.containingClass()) in computeDelta()
358 val cls = getOrAddClass(new.containingClass()) in computeDelta()
363 val cls = getOrAddClass(new.containingClass()) in computeDelta()
368 val cls = getOrAddClass(new.containingClass()) in computeDelta()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt255 writer.print(constructor.containingClass().simpleName()) in <lambda>()
270 … val invokeOnThis = constructor != null && constructor.containingClass() == it.containingClass() in <lambda>()
273 it.containingClass().constructors().filter { filterReference.test(it) }.size > 1 in <lambda>()
292 … val map = constructor?.containingClass()?.mapTypeVariables(it.containingClass()) in <lambda>()
331 writeMethod(method.containingClass(), method, false) in <lambda>()
334 …private fun writeMethod(containingClass: ClassItem, method: MethodItem, movedFromInterface: Boolea… in <lambda>()
336 val isEnum = containingClass.isEnum() in <lambda>()
337 val isAnnotation = containingClass.isAnnotationType() in <lambda>()
407 … field.modifiers.isFinal() && field.initialValue(true) == null && field.containingClass().isClass() in <lambda>()

123