Home
last modified time | relevance | path

Searched refs:ClassItem (Results 1 – 25 of 60) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt37 interface ClassItem : Item { in <lambda>() interface
57 fun allClasses(): Sequence<ClassItem> { in <lambda>()
69 var curr: ClassItem? = this in <lambda>()
83 var curr: ClassItem? = this in <lambda>()
97 fun superClass(): ClassItem? in <lambda>()
106 fun publicSuperClass(): ClassItem? { in <lambda>()
157 fun allInterfaces(): Sequence<ClassItem> in <lambda>()
160 fun innerClasses(): List<ClassItem> in <lambda>()
195 fun containingClass(): ClassItem? in <lambda>()
202 override fun containingClass(strict: Boolean): ClassItem? { in <lambda>()
[all …]
DMethodItem.kt82 fun typeArgumentClasses(): List<ClassItem> = codebase.unsupported() in <lambda>()
85 fun throwsTypes(): List<ClassItem> in <lambda>()
104 fun filteredThrowsTypes(predicate: Predicate<Item>): Collection<ClassItem> { in <lambda>()
113 classes: LinkedHashSet<ClassItem> in <lambda>()
114 ): LinkedHashSet<ClassItem> { in <lambda>()
148 var inheritedFrom: ClassItem? in <lambda>()
154 fun duplicate(targetContainingClass: ClassItem): MethodItem in <lambda>()
402 fun findThrownExceptions(): Set<ClassItem> = codebase.unsupported() in <lambda>()
DTypeItem.kt72 fun asClass(): ClassItem? in <lambda>()
97 fun typeArgumentClasses(): List<ClassItem> in <lambda>()
99 fun convertType(from: ClassItem, to: ClassItem): TypeItem { in <lambda>()
246 ClassItem.fullNameComparator.compare(cls1, cls2) in <lambda>()
DItem.kt195 if (curr is ClassItem && curr.isTopLevelClass()) { in compilationUnit()
236 fun containingClass(strict: Boolean = true): ClassItem? in psi()
265 is ClassItem -> describe(item, capitalize = capitalize) in describe()
366 private fun describe(item: ClassItem, capitalize: Boolean = false): String { in describe()
/tools/metalava/src/main/java/com/android/tools/metalava/
DComparisonVisitor.kt20 import com.android.tools.metalava.model.ClassItem in <lambda>()
60 open fun compare(old: ClassItem, new: ClassItem) {} in <lambda>()
68 open fun added(new: ClassItem) {} in <lambda>()
76 open fun removed(old: ClassItem, from: Item?) {} in <lambda>()
77 open fun removed(old: ConstructorItem, from: ClassItem?) {} in <lambda>()
78 open fun removed(old: MethodItem, from: ClassItem?) {} in <lambda>()
79 open fun removed(old: FieldItem, from: ClassItem?) {} in <lambda>()
80 open fun removed(old: PropertyItem, from: ClassItem?) {} in <lambda>()
190 if (new is MethodItem && oldParent is ClassItem) { in visitAdded()
230 is ClassItem -> visitor.added(item) in doVisitAdded()
[all …]
DApiLint.kt142 import com.android.tools.metalava.model.ClassItem in <lambda>()
245 item is ClassItem && !isInteresting(item) || in <lambda>()
252 override fun visitClass(cls: ClassItem) { in <lambda>()
298 cls: ClassItem, in <lambda>()
303 superClass: ClassItem?, in <lambda>()
377 private fun checkEnums(cls: ClassItem) { in <lambda>()
437 private fun checkClassNames(cls: ClassItem) { in <lambda>()
539 private fun checkCallbacks(cls: ClassItem) { in <lambda>()
622 private fun checkListeners(cls: ClassItem, methods: Sequence<MethodItem>) { in <lambda>()
848 cls: ClassItem, in <lambda>()
[all …]
DApiAnalyzer.kt22 import com.android.tools.metalava.model.ClassItem in <lambda>()
132 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>()
266 …private fun generateInheritedStubs(cls: ClassItem, filterEmit: Predicate<Item>, filterReference: P… in <lambda>()
269 … val superClasses: Sequence<ClassItem> = generateSequence(cls.superClass()) { it.superClass() } in <lambda>()
270 val hiddenSuperClasses: Sequence<ClassItem> = in <lambda>()
282 cls: ClassItem, in <lambda>()
283 hiddenSuperClasses: Sequence<ClassItem>, in <lambda>()
287 var interfaceTypeClasses: MutableList<ClassItem>? = null in <lambda>()
323 cls: ClassItem, in <lambda>()
324 hiddenSuperClasses: Sequence<ClassItem>, in <lambda>()
[all …]
DSdkFileWriter.kt19 import com.android.tools.metalava.model.ClassItem
63 val layouts = mutableListOf<ClassItem>() in generate()
64 val widgets = mutableListOf<ClassItem>() in generate()
65 val layoutParams = mutableListOf<ClassItem>() in generate()
70 var topLayoutParams: ClassItem? = null in generate()
154 var clazz: ClassItem? = layoutParams[i] in generate()
178 private fun isIncludedPackage(clazz: ClassItem): Boolean { in isIncludedPackage()
227 widgets: List<ClassItem>, in writeClasses()
228 layouts: List<ClassItem>, in writeClasses()
229 layoutParams: List<ClassItem> in writeClasses()
[all …]
DCompatibilityCheck.kt26 import com.android.tools.metalava.model.ClassItem
196 override fun compare(old: ClassItem, new: ClassItem) { in compare()
552 constraints: List<ClassItem> in describeBounds()
720 is ClassItem -> base.findClass(item.qualifiedName()) in findBaseItem()
735 override fun added(new: ClassItem) { in added()
814 override fun removed(old: ClassItem, from: Item?) { in removed()
824 override fun removed(old: MethodItem, from: ClassItem?) { in removed()
842 override fun removed(old: FieldItem, from: ClassItem?) { in removed()
DSignatureWriter.kt20 import com.android.tools.metalava.model.ClassItem in <lambda>()
137 override fun visitClass(cls: ClassItem) { in <lambda>()
169 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
186 private fun writeSuperClassStatement(cls: ClassItem) { in <lambda>()
212 private fun writeInterfaceList(cls: ClassItem) { in <lambda>()
353 throws.asSequence().sortedWith(ClassItem.fullNameComparator).forEachIndexed { i, type -> in <lambda>()
DJDiffXmlWriter.kt19 import com.android.tools.metalava.model.ClassItem in <lambda>()
88 override fun visitClass(cls: ClassItem) { in <lambda>()
158 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
279 private fun writeSuperClassAttribute(cls: ClassItem) { in <lambda>()
318 private fun writeInterfaceList(cls: ClassItem) { in <lambda>()
366 throws.asSequence().sortedWith(ClassItem.fullNameComparator).forEach { type -> in <lambda>()
DDocAnalyzer.kt13 import com.android.tools.metalava.model.ClassItem in <lambda>()
84 override fun visitClass(cls: ClassItem) { in <lambda>()
193 if (item is ClassItem && name == item.qualifiedName()) { in <lambda>()
270 is ClassItem -> { in <lambda>()
734 override fun visitClass(cls: ClassItem) { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiMethodItem.kt21 import com.android.tools.metalava.model.ClassItem in <lambda>()
81 override var inheritedFrom: ClassItem? = null in <lambda>()
134 override fun typeArgumentClasses(): List<ClassItem> { in <lambda>()
139 private lateinit var throwsTypes: List<ClassItem> in <lambda>()
141 fun setThrowsTypes(throwsTypes: List<ClassItem>) { in <lambda>()
145 override fun throwsTypes(): List<ClassItem> = throwsTypes in <lambda>()
174 override fun findThrownExceptions(): Set<ClassItem> { in <lambda>()
180 val exceptions = mutableSetOf<ClassItem>() in <lambda>()
194 private fun isCaught(exceptionClass: ClassItem, node: UThrowExpression): Boolean { in <lambda>()
244 override fun duplicate(targetContainingClass: ClassItem): PsiMethodItem { in <lambda>()
[all …]
DPsiClassItem.kt21 import com.android.tools.metalava.model.ClassItem in <lambda>()
65 ), ClassItem { in <lambda>()
79 private var superClass: ClassItem? = null in <lambda>()
81 override fun superClass(): ClassItem? = superClass in <lambda>()
84 override fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem?) { in <lambda>()
108 private var allInterfaces: List<ClassItem>? = null in <lambda>()
110 override fun allInterfaces(): Sequence<ClassItem> { in <lambda>()
121 val result = mutableListOf<ClassItem>() in <lambda>()
184 override fun typeArgumentClasses(): List<ClassItem> { in <lambda>()
289 override fun mapTypeVariables(target: ClassItem): Map<String, String> { in <lambda>()
[all …]
DPsiTypeItem.kt23 import com.android.tools.metalava.model.ClassItem
243 override fun typeArgumentClasses(): List<ClassItem> { in typeArgumentClasses()
248 val classes = mutableListOf<ClassItem>() in typeArgumentClasses()
734 …ypeParameterClasses(codebase: PsiBasedCodebase, typeList: PsiTypeParameterList?): List<ClassItem> { in typeParameterClasses()
736 val list = mutableListOf<ClassItem>() in typeParameterClasses()
823 …private fun addRealClass(codebase: PsiBasedCodebase, classes: MutableList<ClassItem>, type: PsiTyp… in addRealClass()
829 private fun addRealClass(classes: MutableList<ClassItem>, cls: ClassItem) { in addRealClass()
DPsiFieldItem.kt19 import com.android.tools.metalava.model.ClassItem
66 override fun containingClass(): ClassItem = containingClass in isEnumConstant()
80 override fun duplicate(targetContainingClass: ClassItem): PsiFieldItem { in duplicate()
99 override var inheritedFrom: ClassItem? = null
DPsiBasedCodebase.kt23 import com.android.tools.metalava.model.ClassItem in <lambda>()
102 private lateinit var topLevelClassesFromSource: MutableList<ClassItem> in <lambda>()
213 val sortedClasses = classes.toMutableList().sortedWith(ClassItem.fullNameComparator) in <lambda>()
384 packageClasses.sortWith(ClassItem.fullNameComparator) in <lambda>()
681 fun getTopLevelClassesFromSource(): List<ClassItem> { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt20 import com.android.tools.metalava.model.ClassItem
49 ), ClassItem, TypeParameterListOwner {
62 if (other !is ClassItem) return false in equals()
72 override fun allInterfaces(): Sequence<ClassItem> { in interfaceTypes()
76 private var innerClasses: MutableList<ClassItem> = mutableListOf()
82 override fun innerClasses(): List<ClassItem> = innerClasses in innerClasses()
93 override fun containingClass(): ClassItem? = containingClass in isInterface()
159 private var superClass: ClassItem? = null
162 override fun superClass(): ClassItem? = superClass in superClass()
165 override fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem?) { in superClass()
[all …]
DTextTypeItem.kt22 import com.android.tools.metalava.model.ClassItem
83 override fun asClass(): ClassItem? { in asClass()
144 …e fun findTypeVariableBounds(typeParameterList: TypeParameterList, name: String): List<ClassItem> { in findTypeVariableBounds()
157 private fun findTypeVariableBounds(context: Item?, name: String): List<ClassItem> { in findTypeVariableBounds()
164 } else if (context is ClassItem) { in findTypeVariableBounds()
200 override fun typeArgumentClasses(): List<ClassItem> = codebase.unsupported() in typeArgumentClasses()
DTextMethodItem.kt20 import com.android.tools.metalava.model.ClassItem
135 override fun duplicate(targetContainingClass: ClassItem): MethodItem { in duplicate()
173 private var throwsClasses: List<ClassItem>? = null
179 …override fun throwsTypes(): List<ClassItem> = if (throwsClasses == null) emptyList() else throwsCl… in throwsTypes()
206 override var inheritedFrom: ClassItem? = null in isVarArg()
DTextPackageItem.kt19 import com.android.tools.metalava.model.ClassItem
50 internal fun classList(): List<ClassItem> = classes in classList()
52 override fun topLevelClasses(): Sequence<ClassItem> = classes.asSequence() in classList()
56 override fun containingClass(strict: Boolean): ClassItem? = null in classList()
DTextTypeParameterItem.kt19 import com.android.tools.metalava.model.ClassItem
29 private var bounds: List<ClassItem>? = null
39 override fun bounds(): List<ClassItem> { in bounds()
69 bounds: List<ClassItem>? = null in create()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt21 import com.android.tools.metalava.model.ClassItem in <lambda>()
46 override fun visitClass(cls: ClassItem) { in <lambda>()
63 is ClassItem -> in <lambda>()
138 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
158 val separateLines = item is ClassItem || item is MethodItem in <lambda>()
173 private fun generateSuperClassDeclaration(cls: ClassItem) { in <lambda>()
203 private fun generateInterfaceList(cls: ClassItem) { in <lambda>()
324 private fun generateMissingConstructors(cls: ClassItem) { in <lambda>()
339 …private fun writeMethod(containingClass: ClassItem, method: MethodItem, movedFromInterface: Boolea… in <lambda>()
462 throws.asSequence().sortedWith(ClassItem.fullNameComparator).forEachIndexed { i, type -> in <lambda>()
DKotlinStubWriter.kt20 import com.android.tools.metalava.model.ClassItem in <lambda>()
44 override fun visitClass(cls: ClassItem) { in <lambda>()
57 is ClassItem -> in <lambda>()
113 val separateLines = item is ClassItem || item is MethodItem in <lambda>()
130 private fun generateSuperClassDeclaration(cls: ClassItem): Boolean { in <lambda>()
164 private fun generateInterfaceList(cls: ClassItem, printedSuperClass: Boolean) { in <lambda>()
254 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
292 throws.asSequence().sortedWith(ClassItem.fullNameComparator).forEachIndexed { i, type -> in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DApiPredicate.kt4 import com.android.tools.metalava.model.ClassItem
60 if (member is ClassItem && member.isTypeParameter) { in test()
81 var clazz: ClassItem? = when (member) { in test()
83 is ClassItem -> member in test()

123