public class ResolveSession extends java.lang.Object implements KotlinCodeAnalyzer
| Modifier and Type | Field and Description |
|---|---|
static com.intellij.util.Function<FqName,Name> |
NO_ALIASES |
| Constructor and Description |
|---|
ResolveSession(com.intellij.openapi.project.Project project,
StorageManager storageManager,
ModuleDescriptorImpl rootDescriptor,
DeclarationProviderFactory declarationProviderFactory) |
ResolveSession(com.intellij.openapi.project.Project project,
StorageManager storageManager,
ModuleDescriptorImpl rootDescriptor,
DeclarationProviderFactory declarationProviderFactory,
BindingTrace delegationTrace) |
ResolveSession(com.intellij.openapi.project.Project project,
StorageManager storageManager,
ModuleDescriptorImpl rootDescriptor,
DeclarationProviderFactory declarationProviderFactory,
com.intellij.util.Function<FqName,Name> classifierAliases,
com.google.common.base.Predicate<FqNameUnsafe> specialClasses,
BindingTrace delegationTrace)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forceResolveAll()
Forces all descriptors to be resolved.
|
BindingContext |
getBindingContext() |
ClassDescriptor |
getClassDescriptor(JetClassOrObject classOrObject) |
DeclarationProviderFactory |
getDeclarationProviderFactory() |
InjectorForLazyResolve |
getInjector() |
NamespaceDescriptor |
getPackageDescriptor(Name shortName) |
NamespaceDescriptor |
getPackageDescriptorByFqName(FqName fqName) |
ModuleDescriptor |
getRootModuleDescriptor() |
StorageManager |
getStorageManager() |
BindingTrace |
getTrace() |
boolean |
isClassSpecial(FqNameUnsafe fqName) |
Name |
resolveClassifierAlias(FqName packageName,
Name alias) |
DeclarationDescriptor |
resolveToDescriptor(JetDeclaration declaration) |
public static final com.intellij.util.Function<FqName,Name> NO_ALIASES
public ResolveSession(@NotNull com.intellij.openapi.project.Project project, @NotNull StorageManager storageManager, @NotNull ModuleDescriptorImpl rootDescriptor, @NotNull DeclarationProviderFactory declarationProviderFactory)
public ResolveSession(@NotNull com.intellij.openapi.project.Project project, @NotNull StorageManager storageManager, @NotNull ModuleDescriptorImpl rootDescriptor, @NotNull DeclarationProviderFactory declarationProviderFactory, @NotNull BindingTrace delegationTrace)
@Deprecated public ResolveSession(@NotNull com.intellij.openapi.project.Project project, @NotNull StorageManager storageManager, @NotNull ModuleDescriptorImpl rootDescriptor, @NotNull DeclarationProviderFactory declarationProviderFactory, @NotNull com.intellij.util.Function<FqName,Name> classifierAliases, @NotNull com.google.common.base.Predicate<FqNameUnsafe> specialClasses, @NotNull BindingTrace delegationTrace)
@NotNull public InjectorForLazyResolve getInjector()
public boolean isClassSpecial(@NotNull FqNameUnsafe fqName)
public ModuleDescriptor getRootModuleDescriptor()
getRootModuleDescriptor in interface KotlinCodeAnalyzer@NotNull public StorageManager getStorageManager()
@Nullable public NamespaceDescriptor getPackageDescriptor(@NotNull Name shortName)
getPackageDescriptor in interface KotlinCodeAnalyzer@Nullable public NamespaceDescriptor getPackageDescriptorByFqName(FqName fqName)
getPackageDescriptorByFqName in interface KotlinCodeAnalyzer@NotNull public ClassDescriptor getClassDescriptor(@NotNull JetClassOrObject classOrObject)
getClassDescriptor in interface KotlinCodeAnalyzer@NotNull public BindingContext getBindingContext()
getBindingContext in interface KotlinCodeAnalyzer@NotNull public BindingTrace getTrace()
@NotNull public DeclarationProviderFactory getDeclarationProviderFactory()
@NotNull public DeclarationDescriptor resolveToDescriptor(JetDeclaration declaration)
resolveToDescriptor in interface KotlinCodeAnalyzer@NotNull public Name resolveClassifierAlias(@NotNull FqName packageName, @NotNull Name alias)
public void forceResolveAll()
KotlinCodeAnalyzerforceResolveAll in interface KotlinCodeAnalyzer