org.jetbrains.jet.asJava
Class LightClassUtil
java.lang.Object
org.jetbrains.jet.asJava.LightClassUtil
public class LightClassUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 compiler/frontend/src/jet directory and files such as Any.jet, Nothing.jet etc.
Used to skip JetLightClass creation for built-ins, because built-in classes have no Java counterparts
getBuiltInsDirResourceUrl
@NotNull
public static java.net.URL getBuiltInsDirResourceUrl()
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
public static LightClassUtil.PropertyAccessorsPsiMethods getLightClassPropertyMethods(@NotNull
JetParameter parameter)
getLightClassMethod
@Nullable
public static com.intellij.psi.PsiMethod getLightClassMethod(@NotNull
JetNamedFunction function)