org.jetbrains.kotlin.js.translate.utils
Class AnnotationsUtils

java.lang.Object
  extended by org.jetbrains.kotlin.js.translate.utils.AnnotationsUtils

public final class AnnotationsUtils
extends java.lang.Object


Method Summary
static java.lang.String getNameForAnnotatedObject(DeclarationDescriptor declarationDescriptor, PredefinedAnnotation annotation)
           
static java.lang.String getNameForAnnotatedObjectWithOverrides(DeclarationDescriptor declarationDescriptor)
           
static boolean hasAnnotation(DeclarationDescriptor descriptor, PredefinedAnnotation annotation)
           
static boolean hasAnnotationOrInsideAnnotatedClass(DeclarationDescriptor descriptor, PredefinedAnnotation annotation)
           
static boolean isLibraryObject(DeclarationDescriptor descriptor)
           
static boolean isNativeObject(DeclarationDescriptor descriptor)
           
static boolean isPredefinedObject(DeclarationDescriptor descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasAnnotation

public static boolean hasAnnotation(@NotNull
                                    DeclarationDescriptor descriptor,
                                    @NotNull
                                    PredefinedAnnotation annotation)

getNameForAnnotatedObject

@Nullable
public static java.lang.String getNameForAnnotatedObject(@NotNull
                                                                  DeclarationDescriptor declarationDescriptor,
                                                                  @NotNull
                                                                  PredefinedAnnotation annotation)

getNameForAnnotatedObjectWithOverrides

@Nullable
public static java.lang.String getNameForAnnotatedObjectWithOverrides(@NotNull
                                                                               DeclarationDescriptor declarationDescriptor)

isNativeObject

public static boolean isNativeObject(@NotNull
                                     DeclarationDescriptor descriptor)

isLibraryObject

public static boolean isLibraryObject(@NotNull
                                      DeclarationDescriptor descriptor)

isPredefinedObject

public static boolean isPredefinedObject(@NotNull
                                         DeclarationDescriptor descriptor)

hasAnnotationOrInsideAnnotatedClass

public static boolean hasAnnotationOrInsideAnnotatedClass(@NotNull
                                                          DeclarationDescriptor descriptor,
                                                          @NotNull
                                                          PredefinedAnnotation annotation)