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

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

public final class JsDescriptorUtils
extends java.lang.Object


Method Summary
static ClassDescriptor findAncestorClass(java.util.List<ClassDescriptor> superclassDescriptors)
           
static DeclarationDescriptor getContainingDeclaration(DeclarationDescriptor descriptor)
           
static Name getNameIfStandardType(JetExpression expression, TranslationContext context)
           
static FunctionDescriptor getOverriddenDescriptor(FunctionDescriptor functionDescriptor)
           
static ReceiverParameterDescriptor getReceiverParameterForDeclaration(DeclarationDescriptor declarationDescriptor)
           
static ReceiverParameterDescriptor getReceiverParameterForReceiver(ReceiverValue receiverParameter)
           
static ClassDescriptor getSuperclass(ClassDescriptor classDescriptor)
           
static java.util.List<JetType> getSupertypesWithoutFakes(ClassDescriptor descriptor)
           
static boolean hasParameters(FunctionDescriptor functionDescriptor)
           
static boolean isBuiltin(DeclarationDescriptor descriptor)
           
static boolean isCompareTo(CallableDescriptor descriptor)
           
static boolean isSimpleFinalProperty(PropertyDescriptor propertyDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasParameters

public static boolean hasParameters(@NotNull
                                    FunctionDescriptor functionDescriptor)

isCompareTo

public static boolean isCompareTo(@NotNull
                                  CallableDescriptor descriptor)

findAncestorClass

@Nullable
public static ClassDescriptor findAncestorClass(@NotNull
                                                         java.util.List<ClassDescriptor> superclassDescriptors)

getSuperclass

@Nullable
public static ClassDescriptor getSuperclass(@NotNull
                                                     ClassDescriptor classDescriptor)

getSupertypesWithoutFakes

@NotNull
public static java.util.List<JetType> getSupertypesWithoutFakes(ClassDescriptor descriptor)

getContainingDeclaration

@NotNull
public static DeclarationDescriptor getContainingDeclaration(@NotNull
                                                                     DeclarationDescriptor descriptor)

getReceiverParameterForReceiver

@NotNull
public static ReceiverParameterDescriptor getReceiverParameterForReceiver(@NotNull
                                                                                  ReceiverValue receiverParameter)

getReceiverParameterForDeclaration

public static ReceiverParameterDescriptor getReceiverParameterForDeclaration(DeclarationDescriptor declarationDescriptor)

getOverriddenDescriptor

@Nullable
public static FunctionDescriptor getOverriddenDescriptor(@NotNull
                                                                  FunctionDescriptor functionDescriptor)

isSimpleFinalProperty

public static boolean isSimpleFinalProperty(@NotNull
                                            PropertyDescriptor propertyDescriptor)

isBuiltin

public static boolean isBuiltin(@NotNull
                                DeclarationDescriptor descriptor)

getNameIfStandardType

@Nullable
public static Name getNameIfStandardType(@NotNull
                                                  JetExpression expression,
                                                  @NotNull
                                                  TranslationContext context)