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