public class PathReferenceManagerImpl extends PathReferenceManager
ANCHOR_REFERENCE_PROVIDER_EP, PATH_REFERENCE_PROVIDER_EP
Constructor and Description |
---|
PathReferenceManagerImpl() |
Modifier and Type | Method and Description |
---|---|
PsiReference [] |
createCustomReferences(PsiElement psiElement,
boolean soft,
PathReferenceProvider... providers) |
PsiReference [] |
createReferences(PsiElement psiElement,
boolean soft,
boolean endingSlashNotAllowed,
boolean relativePathsAllowed,
FileType[] suitableFileTypes,
PathReferenceProvider... additionalProviders) |
PsiReference [] |
createReferences(PsiElement psiElement,
boolean soft,
boolean endingSlashNotAllowed,
boolean relativePathsAllowed,
PathReferenceProvider... additionalProviders)
Create web path references for given PsiElement.
|
PsiReference [] |
createReferences(PsiElement psiElement,
boolean soft,
PathReferenceProvider... additionalProviders)
Create web path references for given PsiElement.
|
PathReferenceProvider |
createStaticPathReferenceProvider(boolean relativePathsAllowed) |
PathReference |
getCustomPathReference(java.lang.String path,
Module module,
PsiElement element,
PathReferenceProvider... providers) |
PathReferenceProvider |
getGlobalWebPathReferenceProvider() |
PathReference |
getPathReference(java.lang.String path,
PsiElement element,
PathReferenceProvider... additionalProviders) |
getInstance, getReferencesFromProvider
public PathReference getPathReference(java.lang.String path, PsiElement element, PathReferenceProvider... additionalProviders)
getPathReference
in class PathReferenceManager
public PathReference getCustomPathReference(java.lang.String path, Module module, PsiElement element, PathReferenceProvider... providers)
getCustomPathReference
in class PathReferenceManager
public PathReferenceProvider getGlobalWebPathReferenceProvider()
getGlobalWebPathReferenceProvider
in class PathReferenceManager
public PathReferenceProvider createStaticPathReferenceProvider(boolean relativePathsAllowed)
createStaticPathReferenceProvider
in class PathReferenceManager
public PsiReference [] createReferences(PsiElement psiElement, boolean soft, boolean endingSlashNotAllowed, boolean relativePathsAllowed, PathReferenceProvider... additionalProviders)
PathReferenceManager
createReferences
in class PathReferenceManager
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 PsiReference [] createReferences(PsiElement psiElement, boolean soft, boolean endingSlashNotAllowed, boolean relativePathsAllowed, FileType[] suitableFileTypes, PathReferenceProvider... additionalProviders)
createReferences
in class PathReferenceManager
public PsiReference [] createCustomReferences(PsiElement psiElement, boolean soft, PathReferenceProvider... providers)
createCustomReferences
in class PathReferenceManager
public PsiReference [] createReferences(PsiElement psiElement, boolean soft, PathReferenceProvider... additionalProviders)
PathReferenceManager
PathReferenceManager.createReferences(PsiElement, boolean, boolean, boolean, PathReferenceProvider[])
with
endingSlashNotAllowed = true and relativePathsAllowed = true.createReferences
in class PathReferenceManager
psiElement
- the underlying PSI element.soft
- set this to true to create soft references (see PsiReference.isSoft()
).additionalProviders
- additional providers to process.