public abstract class PathReferenceManager
extends java.lang.Object
PathReferenceProvider
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<PathReferenceProvider> |
ANCHOR_REFERENCE_PROVIDER_EP |
static ExtensionPointName<PathReferenceProvider> |
PATH_REFERENCE_PROVIDER_EP |
Constructor and Description |
---|
PathReferenceManager() |
Modifier and Type | Method and Description |
---|---|
abstract PsiReference [] |
createCustomReferences(PsiElement psiElement,
boolean soft,
PathReferenceProvider... providers) |
abstract PsiReference[] |
createReferences(PsiElement psiElement,
boolean soft,
boolean endingSlashNotAllowed,
boolean relativePathsAllowed,
FileType[] suitableFileTypes,
PathReferenceProvider... additionalProviders) |
abstract PsiReference [] |
createReferences(PsiElement psiElement,
boolean soft,
boolean endingSlashNotAllowed,
boolean relativePathsAllowed,
PathReferenceProvider... additionalProviders)
Create web path references for given PsiElement.
|
abstract PsiReference [] |
createReferences(PsiElement psiElement,
boolean soft,
PathReferenceProvider... additionalProviders)
Create web path references for given PsiElement.
|
abstract PathReferenceProvider |
createStaticPathReferenceProvider(boolean relativePathsAllowed) |
abstract PathReference |
getCustomPathReference(java.lang.String path,
Module module,
PsiElement element,
PathReferenceProvider... providers) |
abstract PathReferenceProvider |
getGlobalWebPathReferenceProvider() |
static PathReferenceManager |
getInstance() |
abstract PathReference |
getPathReference(java.lang.String path,
PsiElement element,
PathReferenceProvider... additionalProviders) |
static PsiReference[] |
getReferencesFromProvider(PathReferenceProvider provider,
PsiElement psiElement,
boolean soft) |
public static final ExtensionPointName<PathReferenceProvider> PATH_REFERENCE_PROVIDER_EP
public static final ExtensionPointName<PathReferenceProvider> ANCHOR_REFERENCE_PROVIDER_EP
public static PathReferenceManager getInstance()
public abstract PsiReference [] createReferences(PsiElement psiElement, boolean soft, PathReferenceProvider... additionalProviders)
createReferences(PsiElement, boolean, boolean, boolean, PathReferenceProvider[])
with
endingSlashNotAllowed = true and relativePathsAllowed = true.psiElement
- the underlying PSI element.soft
- set this to true to create soft references (see PsiReference.isSoft()
).additionalProviders
- additional providers to process.public abstract PsiReference [] createReferences(PsiElement psiElement, boolean soft, boolean endingSlashNotAllowed, boolean relativePathsAllowed, PathReferenceProvider... additionalProviders)
psiElement
- the underlying PSI element.soft
- set this to true to create soft references (see PsiReference.isSoft()
).endingSlashNotAllowed
- true if paths like "/foo/" should not be resolved.relativePathsAllowed
- true if the folder of the file containing the PsiElement should be used as "root".
Otherwise, web application root will be used.additionalProviders
- additional providers to process. @return created references or an empty array.public abstract PsiReference[] createReferences(PsiElement psiElement, boolean soft, boolean endingSlashNotAllowed, boolean relativePathsAllowed, FileType[] suitableFileTypes, PathReferenceProvider... additionalProviders)
public abstract PsiReference [] createCustomReferences(PsiElement psiElement, boolean soft, PathReferenceProvider... providers)
public abstract PathReference getPathReference(java.lang.String path, PsiElement element, PathReferenceProvider... additionalProviders)
public abstract PathReference getCustomPathReference(java.lang.String path, Module module, PsiElement element, PathReferenceProvider... providers)
public abstract PathReferenceProvider getGlobalWebPathReferenceProvider()
public abstract PathReferenceProvider createStaticPathReferenceProvider(boolean relativePathsAllowed)
public static PsiReference[] getReferencesFromProvider(PathReferenceProvider provider, PsiElement psiElement, boolean soft)