mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
pass foothold to PyCanonicalPathProvider; javadoc
This commit is contained in:
@@ -1,15 +1,25 @@
|
||||
package com.jetbrains.python.psi.resolve;
|
||||
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.jetbrains.python.psi.impl.PyQualifiedName;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Allows to provide a custom qualified name when a specific symbol is going to be imported into a specific file.
|
||||
*
|
||||
* @author yole
|
||||
*/
|
||||
public interface PyCanonicalPathProvider {
|
||||
ExtensionPointName<PyCanonicalPathProvider> EP_NAME = ExtensionPointName.create("Pythonid.canonicalPathProvider");
|
||||
|
||||
/**
|
||||
* Allows to provide a custom qualified name when a specific symbol is going to be imported into a specific file.
|
||||
*
|
||||
* @param qName the real qualified name of the symbol being imported.
|
||||
* @param foothold the location where the symbol is being imported.
|
||||
* @return the qualified name to use in the import statement, or null if no replacement is necessary.
|
||||
*/
|
||||
@Nullable
|
||||
PyQualifiedName getCanonicalPath(PyQualifiedName qName);
|
||||
PyQualifiedName getCanonicalPath(PyQualifiedName qName, PsiElement foothold);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user