org.jetbrains.jet.lang.resolve.java
Class DescriptorResolverUtils

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.java.DescriptorResolverUtils

public final class DescriptorResolverUtils
extends java.lang.Object


Method Summary
static java.util.Collection<JetType> getSupertypes(ClassOrNamespaceDescriptor classOrNamespaceDescriptor)
           
static ValueParameterDescriptor getValueParameterDescriptorForAnnotationParameter(Name argumentName, ClassDescriptor classDescriptor)
           
static boolean hasAnnotation(com.intellij.psi.PsiClass psiClass, FqName annotationFqName)
           
static boolean isCompiledKotlinClass(com.intellij.psi.PsiClass psiClass)
           
static boolean isCompiledKotlinClassOrPackageClass(com.intellij.psi.PsiClass psiClass)
           
static boolean isCompiledKotlinPackageClass(com.intellij.psi.PsiClass psiClass)
           
static boolean isCorrectOwnerForEnumMember(ClassOrNamespaceDescriptor ownerDescriptor, com.intellij.psi.PsiMember member)
           
static boolean isObjectMethod(com.intellij.psi.PsiMethod method)
           
static boolean isObjectMethodInInterface(com.intellij.psi.PsiMember member)
           
static Visibility resolveVisibility(com.intellij.psi.PsiModifierListOwner modifierListOwner)
           
static boolean shouldBeInEnumClassObject(com.intellij.psi.PsiMember member)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isCompiledKotlinPackageClass

public static boolean isCompiledKotlinPackageClass(@NotNull
                                                   com.intellij.psi.PsiClass psiClass)

isCompiledKotlinClass

public static boolean isCompiledKotlinClass(@NotNull
                                            com.intellij.psi.PsiClass psiClass)

hasAnnotation

public static boolean hasAnnotation(@NotNull
                                    com.intellij.psi.PsiClass psiClass,
                                    @NotNull
                                    FqName annotationFqName)

isCompiledKotlinClassOrPackageClass

public static boolean isCompiledKotlinClassOrPackageClass(@NotNull
                                                          com.intellij.psi.PsiClass psiClass)

getSupertypes

@NotNull
public static java.util.Collection<JetType> getSupertypes(@NotNull
                                                                  ClassOrNamespaceDescriptor classOrNamespaceDescriptor)

resolveVisibility

public static Visibility resolveVisibility(@NotNull
                                           com.intellij.psi.PsiModifierListOwner modifierListOwner)

getValueParameterDescriptorForAnnotationParameter

@Nullable
public static ValueParameterDescriptor getValueParameterDescriptorForAnnotationParameter(Name argumentName,
                                                                                                  ClassDescriptor classDescriptor)

shouldBeInEnumClassObject

public static boolean shouldBeInEnumClassObject(@NotNull
                                                com.intellij.psi.PsiMember member)
Returns:
true if member is a static member of enum class, which is to be put into its class object (and not into the corresponding package). This applies to enum entries, values() and valueOf(String) methods

isCorrectOwnerForEnumMember

public static boolean isCorrectOwnerForEnumMember(@NotNull
                                                  ClassOrNamespaceDescriptor ownerDescriptor,
                                                  @NotNull
                                                  com.intellij.psi.PsiMember member)

isObjectMethodInInterface

public static boolean isObjectMethodInInterface(@NotNull
                                                com.intellij.psi.PsiMember member)

isObjectMethod

public static boolean isObjectMethod(@NotNull
                                     com.intellij.psi.PsiMethod method)