org.jetbrains.jet.codegen.binding
Class PsiCodegenPredictor
java.lang.Object
org.jetbrains.jet.codegen.binding.PsiCodegenPredictor
public final class PsiCodegenPredictor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkPredictedNameFromPsi
public static boolean checkPredictedNameFromPsi(@NotNull
BindingTrace bindingTrace,
@NotNull
DeclarationDescriptor descriptor,
JvmClassName nameFromDescriptors)
getPredefinedJvmClassName
@Nullable
public static JvmClassName getPredefinedJvmClassName(@NotNull
JetFile jetFile,
boolean withNamespace)
getPredefinedJvmClassName
@Nullable
public static JvmClassName getPredefinedJvmClassName(@NotNull
JetDeclaration declaration)
- TODO: Finish this method for all cases. Now it's only used and tested in JetLightClass.
- Returns:
- null if no prediction can be done.
checkPredictedClassNameForFun
public static boolean checkPredictedClassNameForFun(BindingContext bindingContext,
@NotNull
DeclarationDescriptor descriptor,
ClassDescriptor classDescriptor)
getPredefinedJvmClassNameForFun
@Nullable
public static JvmClassName getPredefinedJvmClassNameForFun(@NotNull
JetNamedFunction function)
getFileForNamespacePartName
@Nullable
public static JetFile getFileForNamespacePartName(@NotNull
java.util.List<JetFile> allNamespaceFiles,
@NotNull
JvmClassName className)
getFileForCodegenNamedClass
@Nullable
public static JetFile getFileForCodegenNamedClass(@NotNull
BindingContext context,
@NotNull
java.util.List<JetFile> allNamespaceFiles,
@NotNull
JvmClassName className)