Ejemplo n.º 1
0
 public static boolean isCompiledKotlinPackageClass(@NotNull JavaClass javaClass) {
   if (javaClass.getOriginKind() == JavaClass.OriginKind.COMPILED) {
     return javaClass.findAnnotation(JvmAnnotationNames.KOTLIN_PACKAGE) != null
         || javaClass.findAnnotation(JvmAnnotationNames.KOTLIN_PACKAGE_FRAGMENT) != null;
   }
   return false;
 }
Ejemplo n.º 2
0
 public static boolean isCompiledKotlinClass(@NotNull JavaClass javaClass) {
   if (javaClass.getOriginKind() == JavaClass.OriginKind.COMPILED) {
     return javaClass.findAnnotation(JvmAnnotationNames.KOTLIN_CLASS) != null;
   }
   return false;
 }