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 java.lang.String getExternalModuleName(DeclarationDescriptor descriptor)
           
static java.lang.String getModuleName(DeclarationDescriptor descriptor)
           
static Name getNameIfStandardType(KtExpression 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<KotlinType> getSupertypesWithoutFakes(ClassDescriptor descriptor)
           
static boolean hasParameters(FunctionDescriptor functionDescriptor)
           
static boolean isBuiltin(DeclarationDescriptor descriptor)
           
static boolean isCompareTo(CallableDescriptor descriptor)
           
static boolean isSimpleFinalProperty(PropertyDescriptor propertyDescriptor)
           
static boolean sideEffectsPossibleOnRead(PropertyDescriptor property)
           
 
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<KotlinType> getSupertypesWithoutFakes(ClassDescriptor descriptor)

getContainingDeclaration

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

getReceiverParameterForReceiver

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

getReceiverParameterForDeclaration

@NotNull
public static ReceiverParameterDescriptor getReceiverParameterForDeclaration(DeclarationDescriptor declarationDescriptor)

getOverriddenDescriptor

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

sideEffectsPossibleOnRead

public static boolean sideEffectsPossibleOnRead(@NotNull
                                                PropertyDescriptor property)

isSimpleFinalProperty

public static boolean isSimpleFinalProperty(@NotNull
                                            PropertyDescriptor propertyDescriptor)

isBuiltin

public static boolean isBuiltin(@NotNull
                                DeclarationDescriptor descriptor)

getNameIfStandardType

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

getModuleName

@NotNull
public static java.lang.String getModuleName(@NotNull
                                                     DeclarationDescriptor descriptor)

getExternalModuleName

@Nullable
public static java.lang.String getExternalModuleName(@NotNull
                                                              DeclarationDescriptor descriptor)