[SLC] AnnotationFilter: add kdoc
^KT-56046
This commit is contained in:
committed by
Space Team
parent
4e07210b9c
commit
0b7ef03490
+12
@@ -7,7 +7,19 @@ package org.jetbrains.kotlin.light.classes.symbol.annotations
|
|||||||
|
|
||||||
import com.intellij.psi.PsiAnnotation
|
import com.intellij.psi.PsiAnnotation
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provider a filter for resulted annotations from [LazyAnnotationsBox]
|
||||||
|
*
|
||||||
|
* @see LazyAnnotationsBox
|
||||||
|
*/
|
||||||
internal sealed interface AnnotationFilter {
|
internal sealed interface AnnotationFilter {
|
||||||
|
/**
|
||||||
|
* @return **true** if an annotations with [qualifiedName] is allowed
|
||||||
|
*/
|
||||||
fun isAllowed(qualifiedName: String): Boolean
|
fun isAllowed(qualifiedName: String): Boolean
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return a filtered collection where each annotation in a list has an allowed qualifier
|
||||||
|
*/
|
||||||
fun filtered(annotations: Collection<PsiAnnotation>): Collection<PsiAnnotation>
|
fun filtered(annotations: Collection<PsiAnnotation>): Collection<PsiAnnotation>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user