public class UnnecessaryModuleDependencyAnnotator extends RefGraphAnnotator
| Modifier and Type | Field and Description |
|---|---|
static Key<java.util.Set<Module>> |
DEPENDENCIES |
| Constructor and Description |
|---|
UnnecessaryModuleDependencyAnnotator(RefManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
onInitialize(RefElement refElement)
Called before the references to the specified element have been collected.
|
void |
onMarkReferenced(PsiElement what,
PsiElement from,
boolean referencedFromClassInitializer)
Called when 'what' element doesn't belong to the selected scope.
|
void |
onMarkReferenced(RefElement refWhat,
RefElement refFrom,
boolean referencedFromClassInitializer)
Called when a reference to the specified element has been found.
|
onMarkReferenced, onMarkReferenced, onReferencesBuildpublic UnnecessaryModuleDependencyAnnotator(RefManager manager)
public void onMarkReferenced(PsiElement what, PsiElement from, boolean referencedFromClassInitializer)
RefGraphAnnotatoronMarkReferenced in class RefGraphAnnotatorwhat - the referenced elementfrom - the referencing elementreferencedFromClassInitializer - if true, refFrom is a class and the reference
has been found in its initializer block.public void onMarkReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer)
RefGraphAnnotatoronMarkReferenced in class RefGraphAnnotatorrefWhat - the referenced element.refFrom - the referencing element.referencedFromClassInitializer - if true, refFrom is a class and the reference
has been found in its initializer block.public void onInitialize(RefElement refElement)
RefGraphAnnotatoronInitialize in class RefGraphAnnotatorrefElement - the element the references to which are about to be collected.