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.
|
initializeonMarkReferenced, onMarkReferenced, onMarkReferenced, onReferencesBuildpublic RedundantThrowsGraphAnnotator(RefManager refManager)
public void onInitialize(RefElement refElement)
RefGraphAnnotatoronInitialize in class RefGraphAnnotatorrefElement - the element the references to which are about to be collected.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 static java.util.Set<PsiClassType> getUnhandledExceptions(PsiCodeBlock body, PsiMethod method, PsiClass containingClass)