public abstract class RefManager
extends java.lang.Object
GlobalInspectionContext.getRefManager()
Constructor and Description |
---|
RefManager() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
belongsToScope(PsiElement psiElement) |
Element |
export(RefEntity entity,
Element parent,
int actualLine) |
Element |
export(RefEntity entity,
int actualLine) |
PsiNamedElement |
getContainerElement(PsiElement element) |
abstract <T> T |
getExtension(Key<T> key) |
abstract java.lang.String |
getGroupName(RefElement entity) |
abstract long |
getLastUsedMask() |
abstract Project |
getProject()
Returns the project for which the reference graph has been built.
|
abstract PsiManager |
getPsiManager() |
abstract java.lang.String |
getQualifiedName(RefEntity refEntity) |
abstract RefElement |
getReference(PsiElement elem)
Creates (if necessary) and returns the reference graph node for the specified PSI element.
|
abstract RefEntity |
getReference(java.lang.String type,
java.lang.String fqName)
Creates (if necessary) and returns the reference graph node for the PSI element specified by its type and FQName.
|
abstract RefEntity |
getRefinedElement(RefEntity ref) |
abstract RefModule |
getRefModule(Module module)
Creates (if necessary) and returns the reference graph node for the specified module.
|
abstract RefProject |
getRefProject()
Returns the reference graph node pointing to the project for which the reference
graph has been built.
|
abstract AnalysisScope |
getScope()
Returns the analysis scope for which the reference graph has been built.
|
abstract java.lang.String |
getType(RefEntity ref) |
boolean |
isInGraph(VirtualFile file) |
abstract void |
iterate(RefVisitor visitor)
Runs the specified visitor through all elements in the reference graph.
|
abstract void |
removeRefElement(RefElement refElement,
java.util.List<RefElement> deletedRefs) |
public abstract void iterate(RefVisitor visitor)
visitor
- the visitor to run.public abstract AnalysisScope getScope()
public abstract Project getProject()
public abstract RefProject getRefProject()
public abstract RefModule getRefModule(Module module)
module
- the module for which the reference graph node is requested.module
is null.public abstract RefElement getReference(PsiElement elem)
elem
- the element for which the reference graph node is requested.public abstract RefEntity getReference(java.lang.String type, java.lang.String fqName)
type
- SmartRefElementPointer#FILE, etc.
fqName
- fully qualified name for the elementpublic abstract long getLastUsedMask()
public abstract <T> T getExtension(Key<T> key)
public abstract java.lang.String getType(RefEntity ref)
public Element export(RefEntity entity, Element parent, int actualLine)
public Element export(RefEntity entity, int actualLine)
public abstract java.lang.String getGroupName(RefElement entity)
public abstract boolean belongsToScope(PsiElement psiElement)
public abstract java.lang.String getQualifiedName(RefEntity refEntity)
public abstract void removeRefElement(RefElement refElement, java.util.List<RefElement> deletedRefs)
public abstract PsiManager getPsiManager()
public boolean isInGraph(VirtualFile file)
RefManagerExtension
was registered for language and is not covered by default implementation for PsiClassOwner
true, otherwisepublic PsiNamedElement getContainerElement(PsiElement element)