Home
last modified time | relevance | path

Searched refs:modifiers (Results 1 – 25 of 31) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/
DJDiffXmlWriter.kt104 val modifiers = cls.modifiers in <lambda>() constant
106 writer.print(modifiers.isAbstract()) in <lambda>()
108 writer.print(modifiers.isStatic()) in <lambda>()
110 writer.print(modifiers.isFinal()) in <lambda>()
114 writer.print(modifiers.getVisibilityModifiers()) in <lambda>()
169 val modifiers = constructor.modifiers in <lambda>() constant
175 writer.print(modifiers.isStatic()) in <lambda>()
177 writer.print(modifiers.isFinal()) in <lambda>()
181 writer.print(modifiers.getVisibilityModifiers()) in <lambda>()
197 val modifiers = field.modifiers in <lambda>() constant
[all …]
DProguardWriter.kt63 val modifiers = method.modifiers in visitMethod() constant
64 val visibilityLevel = modifiers.getVisibilityLevel() in visitMethod()
69 if (modifiers.isStatic()) { in visitMethod()
72 if (modifiers.isAbstract()) { in visitMethod()
75 if (modifiers.isSynchronized()) { in visitMethod()
104 val modifiers = field.modifiers in visitField() constant
105 val visibilityLevel = modifiers.getVisibilityLevel() in visitField()
110 if (modifiers.isStatic()) { in visitField()
113 if (modifiers.isTransient()) { in visitField()
116 if (modifiers.isVolatile()) { in visitField()
DNullnessMigration.kt104 return item.modifiers.annotations().firstOrNull { it.isNullnessAnnotation() } in findNullnessAnnotation()
108 return item.modifiers.annotations().any { it.isNullable() } in isNullable()
112 return item.modifiers.annotations().any { it.isNonNull() } in isNonNull()
DAnnotationsDiffer.kt80 val newModifiers = new.modifiers in <lambda>()
81 for (annotation in old.modifiers.annotations()) { in <lambda>()
DSignatureWriter.kt105 !method.modifiers.isStatic() in <lambda>()
176 modifiers = item.modifiers, in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiPackageItem.kt28 modifiers: PsiModifierItem,
33 modifiers = modifiers,
137 val modifiers = modifiers(codebase, psiPackage, commentText) in create() constant
138 if (modifiers.isPackagePrivate()) { in create()
140 modifiers.setVisibilityLevel(VisibilityLevel.PUBLIC) in create()
149 modifiers = modifiers in create()
151 pkg.modifiers.setOwner(pkg) in create()
161 modifiers = PsiModifierItem.create(codebase, original.modifiers) in create()
163 pkg.modifiers.setOwner(pkg) in create()
DPsiTypeParameterItem.kt30 modifiers: PsiModifierItem
40 modifiers = modifiers,
67 val modifiers = modifiers(codebase, psiClass, "") in create() constant
73 modifiers = modifiers in create()
75 item.modifiers.setOwner(item) in create()
DPsiFieldItem.kt33 modifiers: PsiModifierItem,
41 modifiers = modifiers,
119 val modifiers = modifiers(codebase, psiField, commentText) in toString() constant
131 modifiers = modifiers, in toString()
136 field.modifiers.setOwner(field) in toString()
DPsiItem.kt36 override val modifiers: PsiModifierItem, constant in com.android.tools.metalava.model.psi.PsiItem
41 override var deprecated: Boolean = modifiers.isDeprecated()
75 modifiers.hasHideAnnotations() in <lambda>()
78 …override var hidden: Boolean by LazyDelegate { originallyHidden && !modifiers.hasShowAnnotation() } in <lambda>()
94 override fun mutableModifiers(): MutableModifierList = modifiers in isCloned()
225 modifiers.setOwner(this) in finishInitialization()
267 fun modifiers( in modifiers() method
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiFile.java190 TextModifiers modifiers = new TextModifiers(api, DefaultModifierList.PUBLIC, null); in parsePackage() local
192 modifiers.addAnnotations(annotations); in parsePackage()
210 pkg = new TextPackageItem(api, name, modifiers, tokenizer.pos()); in parsePackage()
217 name, pkg.getModifiers(), modifiers), tokenizer); in parsePackage()
251 TextModifiers modifiers = parseModifiers(api, tokenizer, token, annotations); in parseClass() local
258 modifiers.setAbstract(true); in parseClass()
262 modifiers.setAbstract(true); in parseClass()
267 modifiers.setFinal(true); in parseClass()
268 modifiers.setStatic(true); in parseClass()
293 cl = new TextClassItem(api, tokenizer.pos(), modifiers, isInterface, isEnum, isAnnotation, in parseClass()
[all …]
DTextPackageItem.kt25 modifiers: TextModifiers,
27 ) : TextItem(codebase, position, modifiers = modifiers), PackageItem {
29 modifiers.setOwner(this)
DTextParameterItem.kt33 modifiers: TextModifiers,
37 : TextItem(codebase, position, modifiers = modifiers), ParameterItem {
40 modifiers.setOwner(this)
DTextFieldItem.kt27 modifiers: TextModifiers,
31 ) : TextMemberItem(codebase, name, containingClass, position, modifiers), FieldItem {
34 modifiers.setOwner(this)
59 modifiers.duplicate(), type, constantValue, position in hashCode()
DTextMemberItem.kt27 override var modifiers: TextModifiers variable
28 ) : TextItem(codebase, position = position, modifiers = modifiers), MemberItem {
DTextPropertyItem.kt27 modifiers: TextModifiers,
30 ) : TextMemberItem(codebase, name, containingClass, position, modifiers), PropertyItem {
33 modifiers.setOwner(this)
DTextMethodItem.kt34 modifiers: TextModifiers,
39 modifiers = modifiers
43 modifiers.setOwner(this)
138 modifiers.duplicate(), returnType, position in duplicate()
DTextConstructorItem.kt25 modifiers: TextModifiers,
28 ) : TextMethodItem(codebase, name, containingClass, modifiers, returnType, position),
DTextItem.kt27 override var modifiers: TextModifiers variable in com.android.tools.metalava.model.text.TextItem
37 override fun mutableModifiers(): MutableModifierList = modifiers
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DItem.kt41 val modifiers: ModifierList constant
163 fun hasShowAnnotation(): Boolean = modifiers.hasShowAnnotation() in isHiddenOrRemoved()
164 fun onlyShowForStubPurposes(): Boolean = modifiers.onlyShowForStubPurposes() in isHiddenOrRemoved()
165 fun hasHideAnnotation(): Boolean = modifiers.hasHideAnnotations() in isHiddenOrRemoved()
166 fun hasHideMetaAnnotation(): Boolean = modifiers.hasHideMetaAnnotations() in isHiddenOrRemoved()
189 return modifiers.checkLevel() in isHiddenOrRemoved()
254 val modifiers = mutableModifiers() in psi() constant
255 modifiers.removeAnnotation(annotation) in psi()
258modifiers.addAnnotation(codebase.createAnnotation("@$annotationClass", this, mapName = false)) in psi()
377 override val isPublic: Boolean get() = modifiers.isPublic()
[all …]
DMemberItem.kt38 return modifiers.isFinal() || containingClass().modifiers.isFinal() in name()
DPropertyItem.kt53 return modifiers.hasNullnessInfo() in <lambda>()
DParameterItem.kt114 return modifiers.hasNullnessInfo() in hasNullnessInfo()
/tools/metalava/src/test/java/com/android/tools/metalava/
DRewriteAnnotationsTest.kt117 val modifiers = annotationClass.modifiers in Test rewriting the bytecode for one of the public annotations() constant
118 assertEquals(0, modifiers and Modifier.PUBLIC) in Test rewriting the bytecode for one of the public annotations()
154 val modifiers = annotationClass.modifiers in Test rewriting the bytecode for one of the public annotations in a jar file() constant
155 assertEquals(0, modifiers and Modifier.PUBLIC) in Test rewriting the bytecode for one of the public annotations in a jar file()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DAnnotationTargetTest.kt38 .filter { Modifier.isStatic(it.modifiers) } in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DStubWriter.kt118 val annotations = pkg.modifiers.annotations() in <lambda>()
133 list = pkg.modifiers, in <lambda>()

12