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 |
BUILT_INS_SRC_DIR
public static final java.io.File BUILT_INS_SRC_DIR
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/kotlin 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)