Home
last modified time | relevance | path

Searched refs:ClassItem (Results 1 – 25 of 59) 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>()
100 fun allSuperClasses(): Sequence<ClassItem> { in <lambda>()
115 fun publicSuperClass(): ClassItem? { in <lambda>()
166 fun allInterfaces(): Sequence<ClassItem> in <lambda>()
169 fun innerClasses(): List<ClassItem> in <lambda>()
204 fun containingClass(): ClassItem? in <lambda>()
[all …]
DMethodItem.kt90 fun typeArgumentClasses(): List<ClassItem> = codebase.unsupported() in <lambda>()
93 fun throwsTypes(): List<ClassItem> in <lambda>()
112 fun filteredThrowsTypes(predicate: Predicate<Item>): Collection<ClassItem> { in <lambda>()
121 classes: LinkedHashSet<ClassItem> in <lambda>()
122 ): LinkedHashSet<ClassItem> { in <lambda>()
156 var inheritedFrom: ClassItem? in <lambda>()
162 fun duplicate(targetContainingClass: ClassItem): MethodItem in <lambda>()
405 fun findThrownExceptions(): Set<ClassItem> = codebase.unsupported() in <lambda>()
DTypeItem.kt75 fun asClass(): ClassItem? in <lambda>()
100 fun typeArgumentClasses(): List<ClassItem> in <lambda>()
102 fun convertType(from: ClassItem, to: ClassItem): TypeItem { in <lambda>()
232 ClassItem.fullNameComparator.compare(cls1, cls2) in <lambda>()
DMemberItem.kt27 fun containingClass(): ClassItem in name()
29 override fun containingClass(strict: Boolean): ClassItem = containingClass() in name()
31 override fun parent(): ClassItem? = containingClass() in name()
DItem.kt199 if (curr is ClassItem && curr.isTopLevelClass()) { in sourceFile()
240 fun containingClass(strict: Boolean = true): ClassItem? in psi()
269 is ClassItem -> describe(item, capitalize = capitalize) in describe()
370 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>()
208 if (new is MethodItem && oldParent is ClassItem) { in visitAdded()
248 is ClassItem -> visitor.added(item) in doVisitAdded()
[all …]
DSdkFileWriter.kt19 import com.android.tools.metalava.model.ClassItem
62 val layouts = mutableListOf<ClassItem>() in generate()
63 val widgets = mutableListOf<ClassItem>() in generate()
64 val layoutParams = mutableListOf<ClassItem>() in generate()
69 var topLayoutParams: ClassItem? = null in generate()
153 var clazz: ClassItem? = layoutParams[i] in generate()
177 private fun isIncludedPackage(clazz: ClassItem): Boolean { in isIncludedPackage()
226 widgets: List<ClassItem>, in writeClasses()
227 layouts: List<ClassItem>, in writeClasses()
228 layoutParams: List<ClassItem> in writeClasses()
[all …]
DApiLint.kt145 import com.android.tools.metalava.model.ClassItem in <lambda>()
224 item is ClassItem && !isInteresting(item) || in <lambda>()
231 override fun visitClass(cls: ClassItem) { in <lambda>()
276 cls: ClassItem, in <lambda>()
281 superClass: ClassItem?, in <lambda>()
355 private fun checkEnums(cls: ClassItem) { in <lambda>()
395 private fun checkClassNames(cls: ClassItem) { in <lambda>()
469 private fun checkCallbacks(cls: ClassItem) { in <lambda>()
535 private fun checkListeners(cls: ClassItem, methods: Sequence<MethodItem>) { in <lambda>()
561 cls: ClassItem, in <lambda>()
[all …]
DApiAnalyzer.kt21 import com.android.tools.metalava.model.ClassItem in <lambda>()
129 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>()
265 …private fun generateInheritedStubs(cls: ClassItem, filterEmit: Predicate<Item>, filterReference: P… in <lambda>()
268 … val superClasses: Sequence<ClassItem> = generateSequence(cls.superClass()) { it.superClass() } in <lambda>()
269 val hiddenSuperClasses: Sequence<ClassItem> = in <lambda>()
281 cls: ClassItem, in <lambda>()
282 hiddenSuperClasses: Sequence<ClassItem>, in <lambda>()
286 var interfaceTypeClasses: MutableList<ClassItem>? = null in <lambda>()
322 cls: ClassItem, in <lambda>()
323 hiddenSuperClasses: Sequence<ClassItem>, in <lambda>()
[all …]
DSignatureWriter.kt20 import com.android.tools.metalava.model.ClassItem in <lambda>()
132 override fun visitClass(cls: ClassItem) { in <lambda>()
155 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
171 private fun writeSuperClassStatement(cls: ClassItem) { in <lambda>()
191 private fun writeInterfaceList(cls: ClassItem) { in <lambda>()
305 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>()
128 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
235 private fun writeSuperClassAttribute(cls: ClassItem) { in <lambda>()
260 private fun writeInterfaceList(cls: ClassItem) { in <lambda>()
300 throws.asSequence().sortedWith(ClassItem.fullNameComparator).forEach { type -> in <lambda>()
DApiPredicate.kt19 import com.android.tools.metalava.model.ClassItem
72 if (member is ClassItem && member.isTypeParameter) { in test()
93 var clazz: ClassItem? = when (member) { in test()
95 is ClassItem -> member in test()
DCompatibilityCheck.kt23 import com.android.tools.metalava.model.ClassItem
223 override fun compare(old: ClassItem, new: ClassItem) { in compare()
758 is ClassItem -> base.findClass(item.qualifiedName()) in findBaseItem()
773 override fun added(new: ClassItem) { in added()
871 override fun removed(old: ClassItem, from: Item?) { in removed()
881 override fun removed(old: MethodItem, from: ClassItem?) { in removed()
899 override fun removed(old: FieldItem, from: ClassItem?) { in removed()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiMethodItem.kt20 import com.android.tools.metalava.model.ClassItem in <lambda>()
79 override var inheritedFrom: ClassItem? = null in <lambda>()
142 override fun typeArgumentClasses(): List<ClassItem> { in <lambda>()
147 private lateinit var throwsTypes: List<ClassItem> in <lambda>()
149 fun setThrowsTypes(throwsTypes: List<ClassItem>) { in <lambda>()
153 override fun throwsTypes(): List<ClassItem> = throwsTypes in <lambda>()
186 override fun findThrownExceptions(): Set<ClassItem> { in <lambda>()
192 val exceptions = mutableSetOf<ClassItem>() in <lambda>()
206 private fun isCaught(exceptionClass: ClassItem, node: UThrowExpression): Boolean { in <lambda>()
255 override fun duplicate(targetContainingClass: ClassItem): PsiMethodItem { in <lambda>()
[all …]
DPsiClassItem.kt23 import com.android.tools.metalava.model.ClassItem in <lambda>()
71 ClassItem { in <lambda>()
86 private var superClass: ClassItem? = null in <lambda>()
88 override fun superClass(): ClassItem? = superClass in <lambda>()
91 override fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem?) { in <lambda>()
115 private var allInterfaces: List<ClassItem>? = null in <lambda>()
117 override fun allInterfaces(): Sequence<ClassItem> { in <lambda>()
128 val result = mutableListOf<ClassItem>() in <lambda>()
195 override fun typeArgumentClasses(): List<ClassItem> { in <lambda>()
303 override fun mapTypeVariables(target: ClassItem): Map<String, String> { in <lambda>()
[all …]
DPsiFieldItem.kt19 import com.android.tools.metalava.model.ClassItem
69 override fun containingClass(): ClassItem = containingClass in isEnumConstant()
83 override fun duplicate(targetContainingClass: ClassItem): PsiFieldItem { in duplicate()
102 override var inheritedFrom: ClassItem? = null
DPsiTypeItem.kt22 import com.android.tools.metalava.model.ClassItem
241 override fun typeArgumentClasses(): List<ClassItem> { in typeArgumentClasses()
246 val classes = mutableListOf<ClassItem>() in typeArgumentClasses()
748 …ypeParameterClasses(codebase: PsiBasedCodebase, typeList: PsiTypeParameterList?): List<ClassItem> { in typeParameterClasses()
750 val list = mutableListOf<ClassItem>() in typeParameterClasses()
837 …private fun addRealClass(codebase: PsiBasedCodebase, classes: MutableList<ClassItem>, type: PsiTyp… in addRealClass()
843 private fun addRealClass(classes: MutableList<ClassItem>, cls: ClassItem) { in addRealClass()
DPsiPackageItem.kt19 import com.android.tools.metalava.model.ClassItem
42 private val classes: MutableList<ClassItem> = mutableListOf()
44 …override fun topLevelClasses(): Sequence<ClassItem> = classes.toList().asSequence().filter { it.is… in <lambda>()
48 override fun containingClass(strict: Boolean): ClassItem? = null in containingClass()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt20 import com.android.tools.metalava.model.ClassItem
50 ClassItem,
64 if (other !is ClassItem) return false in equals()
74 override fun allInterfaces(): Sequence<ClassItem> { in interfaceTypes()
78 private var innerClasses: MutableList<ClassItem> = mutableListOf()
84 override fun innerClasses(): List<ClassItem> = innerClasses in innerClasses()
95 override fun containingClass(): ClassItem? = containingClass in isInterface()
161 private var superClass: ClassItem? = null
164 override fun superClass(): ClassItem? = superClass in superClass()
167 override fun setSuperClass(superClass: ClassItem?, superClassType: TypeItem?) { in superClass()
[all …]
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()
DTextMethodItem.kt19 import com.android.tools.metalava.model.ClassItem
138 override fun duplicate(targetContainingClass: ClassItem): MethodItem { in duplicate()
176 private var throwsClasses: List<ClassItem>? = null
182 …override fun throwsTypes(): List<ClassItem> = if (throwsClasses == null) emptyList() else throwsCl… in throwsTypes()
209 override var inheritedFrom: ClassItem? = null in isVarArg()
DTextFieldItem.kt19 import com.android.tools.metalava.model.ClassItem
56 override fun duplicate(targetContainingClass: ClassItem): TextFieldItem { in hashCode()
78 override var inheritedFrom: ClassItem? = null
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt20 import com.android.tools.metalava.model.ClassItem in <lambda>()
45 override fun visitClass(cls: ClassItem) { in <lambda>()
61 is ClassItem -> in <lambda>()
136 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
156 val separateLines = item is ClassItem || item is MethodItem in <lambda>()
170 private fun generateSuperClassDeclaration(cls: ClassItem) { in <lambda>()
200 private fun generateInterfaceList(cls: ClassItem) { in <lambda>()
319 private fun generateMissingConstructors(cls: ClassItem) { in <lambda>()
334 …private fun writeMethod(containingClass: ClassItem, method: MethodItem, movedFromInterface: Boolea… in <lambda>()
457 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>()
56 is ClassItem -> in <lambda>()
112 val separateLines = item is ClassItem || item is MethodItem in <lambda>()
128 private fun generateSuperClassDeclaration(cls: ClassItem): Boolean { in <lambda>()
162 private fun generateInterfaceList(cls: ClassItem, printedSuperClass: Boolean) { in <lambda>()
252 override fun afterVisitClass(cls: ClassItem) { in <lambda>()
290 throws.asSequence().sortedWith(ClassItem.fullNameComparator).forEachIndexed { i, type -> in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/
DItemVisitor.kt19 import com.android.tools.metalava.model.ClassItem
57 open fun visitClass(cls: ClassItem) {} in visitClass()
73 open fun afterVisitClass(cls: ClassItem) {} in afterVisitClass()

123