org.jetbrains.k2js.translate.utils
Class JsDescriptorUtils
java.lang.Object
org.jetbrains.k2js.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
FunctionDescriptor functionDescriptor)
isConstructorDescriptor
public static boolean isConstructorDescriptor(@NotNull
CallableDescriptor descriptor)
findAncestorClass
@Nullable
public static ClassDescriptor findAncestorClass(@NotNull
java.util.List<ClassDescriptor> superclassDescriptors)
getSuperclass
@Nullable
public static ClassDescriptor getSuperclass(@NotNull
ClassDescriptor classDescriptor)
getContainingDeclaration
@NotNull
public static DeclarationDescriptor getContainingDeclaration(@NotNull
DeclarationDescriptor descriptor)
isExtension
public static boolean isExtension(@NotNull
CallableDescriptor functionDescriptor)
getExpectedThisDescriptor
@Nullable
public static DeclarationDescriptor getExpectedThisDescriptor(@NotNull
CallableDescriptor callableDescriptor)
getDeclarationDescriptorForReceiver
@NotNull
public static DeclarationDescriptor getDeclarationDescriptorForReceiver(@NotNull
ReceiverValue receiverParameter)
getExpectedReceiverDescriptor
@Nullable
public static DeclarationDescriptor getExpectedReceiverDescriptor(@NotNull
CallableDescriptor callableDescriptor)
getContainingClass
@Nullable
public static ClassDescriptor getContainingClass(@NotNull
DeclarationDescriptor descriptor)
getOverriddenDescriptor
@Nullable
public static FunctionDescriptor getOverriddenDescriptor(@NotNull
FunctionDescriptor functionDescriptor)
isAsPrivate
public static boolean isAsPrivate(@NotNull
PropertyDescriptor propertyDescriptor)
isStandardDeclaration
public static boolean isStandardDeclaration(@NotNull
DeclarationDescriptor descriptor)
getContainingNamespace
@Nullable
public static NamespaceDescriptor getContainingNamespace(@NotNull
DeclarationDescriptor descriptor)
getNameIfStandardType
@Nullable
public static Name getNameIfStandardType(@NotNull
JetExpression expression,
@NotNull
TranslationContext context)
getNameIfStandardType
@Nullable
public static Name getNameIfStandardType(@NotNull
JetType type)