public final class RedundantThrowsGraphAnnotator extends RefGraphAnnotatorEx
Constructor and Description |
---|
RedundantThrowsGraphAnnotator(RefManager refManager) |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<PsiClassType> |
getUnhandledExceptions(PsiCodeBlock body,
PsiMethod method,
PsiClass containingClass) |
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.
|
initialize
onMarkReferenced, onMarkReferenced, onMarkReferenced, onReferencesBuild
public RedundantThrowsGraphAnnotator(RefManager refManager)
public void onInitialize(RefElement refElement)
RefGraphAnnotator
onInitialize
in class RefGraphAnnotator
refElement
- the element the references to which are about to be collected.public void onMarkReferenced(PsiElement what, PsiElement from, boolean referencedFromClassInitializer)
RefGraphAnnotator
onMarkReferenced
in class RefGraphAnnotator
what
- the referenced elementfrom
- the referencing elementreferencedFromClassInitializer
- if true, refFrom
is a class and the reference
has been found in its initializer block.public static java.util.Set<PsiClassType> getUnhandledExceptions(PsiCodeBlock body, PsiMethod method, PsiClass containingClass)