org.jetbrains.jet.codegen.binding
Class PsiCodegenPredictor

java.lang.Object
  extended by org.jetbrains.jet.codegen.binding.PsiCodegenPredictor

public final class PsiCodegenPredictor
extends java.lang.Object


Method Summary
static boolean checkPredictedNameFromPsi(BindingTrace bindingTrace, DeclarationDescriptor descriptor, org.jetbrains.asm4.Type nameFromDescriptors)
           
static JetFile getFileForCodegenNamedClass(BindingContext context, java.util.Collection<JetFile> allNamespaceFiles, java.lang.String classInternalName)
           
static JetFile getFileForNamespacePartName(java.util.Collection<JetFile> allNamespaceFiles, JvmClassName className)
           
static java.lang.String getPredefinedJvmInternalName(JetDeclaration declaration)
          TODO: Finish this method for all cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkPredictedNameFromPsi

public static boolean checkPredictedNameFromPsi(@NotNull
                                                BindingTrace bindingTrace,
                                                @NotNull
                                                DeclarationDescriptor descriptor,
                                                @Nullable
                                                org.jetbrains.asm4.Type nameFromDescriptors)

getPredefinedJvmInternalName

@Nullable
public static java.lang.String getPredefinedJvmInternalName(@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.

getFileForNamespacePartName

@Nullable
public static JetFile getFileForNamespacePartName(@NotNull
                                                           java.util.Collection<JetFile> allNamespaceFiles,
                                                           @NotNull
                                                           JvmClassName className)

getFileForCodegenNamedClass

@Nullable
public static JetFile getFileForCodegenNamedClass(@NotNull
                                                           BindingContext context,
                                                           @NotNull
                                                           java.util.Collection<JetFile> allNamespaceFiles,
                                                           @NotNull
                                                           java.lang.String classInternalName)