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, myManager
EMPTY_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, toString
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElement
add, removeChild, setOwner
accept, getChildren, getName, getOwner, getQualifiedName, getRefManager
getUserData, putUserData
protected 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()
RefEntity
public javax.swing.Icon getIcon(boolean expanded)
public RefModule getModule()
RefElement
getModule
in interface RefElement
public java.lang.String getExternalName()
RefEntity
getExternalName
in interface RefEntity
getExternalName
in class RefEntityImpl
public PsiElement getPsiElement()
RefElement
getPsiElement
in interface RefElement
public PsiFile getContainingFile()
public VirtualFile getVirtualFile()
public SmartPsiElementPointer getPointer()
getPointer
in interface RefElement
public void buildReferences()
public boolean isReachable()
RefElement
isReachable
in interface RefElement
public void setReachable(boolean reachable)
public boolean isReferenced()
RefElement
isReferenced
in interface RefElement
public boolean hasSuspiciousCallers()
public java.util.Collection<RefElement> getOutReferences()
RefElement
getOutReferences
in interface RefElement
public java.util.Collection<RefElement> getInReferences()
RefElement
getInReferences
in interface RefElement
public void addInReference(RefElement refElement)
addInReference
in interface WritableRefElement
public void addOutReference(RefElement refElement)
addOutReference
in interface WritableRefElement
public void setEntry(boolean entry)
public boolean isEntry()
RefElement
isEntry
in interface RefElement
public boolean isPermanentEntry()
RefElement
isPermanentEntry
in interface RefElement
public RefElement getContainingEntry()
getContainingEntry
in interface RefElement
public 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 WritableRefElement
public boolean isSuppressed(java.lang.String... toolId)