public abstract class RefGraphAnnotator
extends java.lang.Object
Constructor and Description |
---|
RefGraphAnnotator() |
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.
|
void |
onMarkReferenced(RefElement refWhat,
RefElement refFrom,
boolean referencedFromClassInitializer,
boolean forReading,
boolean forWriting)
Called when a reference to the specified element has been found.
|
void |
onMarkReferenced(RefElement refWhat,
RefElement refFrom,
boolean referencedFromClassInitializer,
boolean forReading,
boolean forWriting,
PsiElement referenceElement)
Called when a reference to the specified element has been found.
|
void |
onReferencesBuild(RefElement refElement)
Called after the references to the specified element have been collected.
|
public void onInitialize(RefElement refElement)
refElement
- the element the references to which are about to be collected.public void onReferencesBuild(RefElement refElement)
refElement
- the element the references to which have been collected.public void onMarkReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer)
refWhat
- 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 onMarkReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer, boolean forReading, boolean forWriting, PsiElement referenceElement)
refWhat
- the referenced element.refFrom
- the referencing element.referencedFromClassInitializer
- if true, refFrom
is a class and the reference
has been found in its initializer block.forReading
- used for readingforWriting
- used for writingreferenceElement
- reference element in refFrompublic void onMarkReferenced(RefElement refWhat, RefElement refFrom, boolean referencedFromClassInitializer, boolean forReading, boolean forWriting)
refWhat
- the referenced element.refFrom
- the referencing element.referencedFromClassInitializer
- if true, refFrom
is a class and the reference
has been found in its initializer block.forReading
- used for readingforWriting
- used for writingpublic void onMarkReferenced(PsiElement what, PsiElement from, boolean referencedFromClassInitializer)
what
- the referenced elementfrom
- the referencing elementreferencedFromClassInitializer
- if true, refFrom
is a class and the reference
has been found in its initializer block.