org.jetbrains.jet.asJava
Class LightClassUtil

java.lang.Object
  extended by org.jetbrains.jet.asJava.LightClassUtil

public class LightClassUtil
extends java.lang.Object


Nested Class Summary
static class LightClassUtil.PropertyAccessorsPsiMethods
           
 
Field Summary
static java.io.File BUILT_INS_SRC_DIR
           
 
Method Summary
static boolean belongsToKotlinBuiltIns(JetFile file)
          Checks whether the given file is loaded from the location where Kotlin's built-in classes are defined.
static com.intellij.psi.PsiTypeParameterList buildLightTypeParameterList(com.intellij.psi.PsiTypeParameterListOwner owner, JetDeclaration declaration)
           
static java.net.URL getBuiltInsDirUrl()
           
static com.intellij.psi.PsiMethod getLightClassAccessorMethod(JetPropertyAccessor accessor)
           
static com.intellij.psi.PsiMethod getLightClassMethod(JetNamedFunction function)
           
static LightClassUtil.PropertyAccessorsPsiMethods getLightClassPropertyMethods(JetParameter parameter)
           
static LightClassUtil.PropertyAccessorsPsiMethods getLightClassPropertyMethods(JetProperty property)
           
static com.intellij.psi.PsiClass getPsiClass(JetClassOrObject classOrObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILT_INS_SRC_DIR

public static final java.io.File BUILT_INS_SRC_DIR
Method Detail

belongsToKotlinBuiltIns

public static boolean belongsToKotlinBuiltIns(@NotNull
                                              JetFile file)
Checks whether the given file is loaded from the location where Kotlin's built-in classes are defined. As of today, this is core/builtins/native/jet directory and files such as Any.kt, Nothing.kt etc. Used to skip JetLightClass creation for built-ins, because built-in classes have no Java counterparts


getBuiltInsDirUrl

@NotNull
public static java.net.URL getBuiltInsDirUrl()

getPsiClass

@Nullable
public static com.intellij.psi.PsiClass getPsiClass(@Nullable
                                                             JetClassOrObject classOrObject)

getLightClassAccessorMethod

@Nullable
public static com.intellij.psi.PsiMethod getLightClassAccessorMethod(@NotNull
                                                                              JetPropertyAccessor accessor)

getLightClassPropertyMethods

@NotNull
public static LightClassUtil.PropertyAccessorsPsiMethods getLightClassPropertyMethods(@NotNull
                                                                                              JetProperty property)

getLightClassPropertyMethods

@NotNull
public static LightClassUtil.PropertyAccessorsPsiMethods getLightClassPropertyMethods(@NotNull
                                                                                              JetParameter parameter)

getLightClassMethod

@Nullable
public static com.intellij.psi.PsiMethod getLightClassMethod(@NotNull
                                                                      JetNamedFunction function)

buildLightTypeParameterList

@NotNull
public static com.intellij.psi.PsiTypeParameterList buildLightTypeParameterList(com.intellij.psi.PsiTypeParameterListOwner owner,
                                                                                        JetDeclaration declaration)