KotlinJavaModulePsiAnnotationsProvider¶
interface KotlinJavaModulePsiAnnotationsProvider : KotlinJavaModuleAnnotationsProvider<PsiAnnotation>
Provides PsiAnnotations for Java modules.
Functions¶
getAnnotationsForModuleOwnerOfClass¶
abstract fun getAnnotationsForModuleOwnerOfClass(classId: ClassId): List<T>?
Returns all annotations of the Java module where the class with the given classId is defined.
Example
// module-info.java
@MyAnnotation
module myModule {
}
// MyClass.java
package myModule
public class MyClass {
}
Here, when given myModule.MyClass, getAnnotationsForModuleOwnerOfClass should return @MyAnnotation.