public abstract class RefElementImpl extends RefEntityImpl implements RefElement, WritableRefElement
| Modifier and Type | Field and Description |
|---|---|
protected static int |
IS_REACHABLE_MASK |
protected static Logger |
LOG |
myChildren, myFlags, myManagerEMPTY_ELEMENTS_ARRAY| Modifier | Constructor and Description |
|---|---|
protected |
RefElementImpl(PsiFile file,
RefManager manager) |
protected |
RefElementImpl(java.lang.String name,
PsiElement element,
RefManager manager) |
protected |
RefElementImpl(java.lang.String name,
RefElement owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInReference(RefElement refElement) |
void |
addOutReference(RefElement refElement) |
void |
addSuppression(java.lang.String text) |
void |
buildReferences() |
RefElement |
getContainingEntry() |
PsiFile |
getContainingFile() |
java.lang.String |
getExternalName()
Returns a user-readable name for the element corresponding to the node.
|
javax.swing.Icon |
getIcon(boolean expanded) |
java.util.Collection<RefElement> |
getInReferences()
Returns the collection of references from other elements to this element.
|
RefModule |
getModule()
Returns the reference graph node for the module to which the element belongs.
|
java.util.Collection<RefElement> |
getOutReferences()
Returns the collection of references from this element to other elements.
|
SmartPsiElementPointer |
getPointer() |
PsiElement |
getPsiElement()
Returns the PSI element corresponding to the node.
|
java.lang.String |
getURL() |
VirtualFile |
getVirtualFile() |
boolean |
hasSuspiciousCallers() |
protected abstract void |
initialize() |
protected boolean |
isDeleted() |
boolean |
isEntry()
Checks if the element is an entry point for reachability analysis.
|
boolean |
isPermanentEntry()
Checks if the element has been specifically marked by the user as an entry point
for reachability analysis.
|
boolean |
isReachable()
Checks if a chain of references exists from one of the entry points to this element.
|
boolean |
isReferenced()
Checks if this element is referenced by any other elements.
|
boolean |
isSuppressed(java.lang.String... toolId) |
boolean |
isSuspicious() |
boolean |
isValid()
Checks if the element corresponding to the node is valid.
|
void |
referenceRemoved() |
void |
setEntry(boolean entry) |
void |
setPermanentEntry(boolean permanentEntry) |
void |
setReachable(boolean reachable) |
accept, add, checkFlag, getChildren, getName, getOwner, getQualifiedName, getRefManager, removeChild, setFlag, setOwner, toStringchangeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementadd, removeChild, setOwneraccept, getChildren, getName, getOwner, getQualifiedName, getRefManagergetUserData, putUserDataprotected static final Logger LOG
protected static final int IS_REACHABLE_MASK
protected RefElementImpl(java.lang.String name,
RefElement owner)
protected RefElementImpl(PsiFile file, RefManager manager)
protected RefElementImpl(java.lang.String name,
PsiElement element,
RefManager manager)
protected boolean isDeleted()
public boolean isValid()
RefEntitypublic javax.swing.Icon getIcon(boolean expanded)
public RefModule getModule()
RefElementgetModule in interface RefElementpublic java.lang.String getExternalName()
RefEntitygetExternalName in interface RefEntitygetExternalName in class RefEntityImplpublic PsiElement getPsiElement()
RefElementgetPsiElement in interface RefElementpublic PsiFile getContainingFile()
public VirtualFile getVirtualFile()
public SmartPsiElementPointer getPointer()
getPointer in interface RefElementpublic void buildReferences()
public boolean isReachable()
RefElementisReachable in interface RefElementpublic void setReachable(boolean reachable)
public boolean isReferenced()
RefElementisReferenced in interface RefElementpublic boolean hasSuspiciousCallers()
public java.util.Collection<RefElement> getOutReferences()
RefElementgetOutReferences in interface RefElementpublic java.util.Collection<RefElement> getInReferences()
RefElementgetInReferences in interface RefElementpublic void addInReference(RefElement refElement)
addInReference in interface WritableRefElementpublic void addOutReference(RefElement refElement)
addOutReference in interface WritableRefElementpublic void setEntry(boolean entry)
public boolean isEntry()
RefElementisEntry in interface RefElementpublic boolean isPermanentEntry()
RefElementisPermanentEntry in interface RefElementpublic RefElement getContainingEntry()
getContainingEntry in interface RefElementpublic void setPermanentEntry(boolean permanentEntry)
public boolean isSuspicious()
public void referenceRemoved()
public java.lang.String getURL()
protected abstract void initialize()
public void addSuppression(java.lang.String text)
addSuppression in interface WritableRefElementpublic boolean isSuppressed(java.lang.String... toolId)