org.jetbrains.kotlin.js.translate.utils
Class JsDescriptorUtils
java.lang.Object
org.jetbrains.kotlin.js.translate.utils.JsDescriptorUtils
public final class JsDescriptorUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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)