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(BindingContext bindingContext, DeclarationDescriptor descriptor, org.jetbrains.org.objectweb.asm.Type nameFromDescriptors)
           
static JetFile getFileForCodegenNamedClass(ModuleDescriptor module, BindingContext context, java.util.Collection<JetFile> allPackageFiles, java.lang.String classInternalName)
           
static JetFile getFileForPackagePartName(java.util.Collection<JetFile> allPackageFiles, JvmClassName className)
           
static java.lang.String getPredefinedJvmInternalName(JetDeclaration declaration)
           
 
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
                                                BindingContext bindingContext,
                                                @NotNull
                                                DeclarationDescriptor descriptor,
                                                @Nullable
                                                org.jetbrains.org.objectweb.asm.Type nameFromDescriptors)

getPredefinedJvmInternalName

@Nullable
public static java.lang.String getPredefinedJvmInternalName(@NotNull
                                                                     JetDeclaration declaration)
Returns:
null if no prediction can be done.

getFileForPackagePartName

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

getFileForCodegenNamedClass

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