public abstract class WebReferencesAnnotatorBase extends ExternalAnnotator<WebReferencesAnnotatorBase.MyInfo[],WebReferencesAnnotatorBase.MyInfo[]>
Modifier and Type | Class and Description |
---|---|
protected static class |
WebReferencesAnnotatorBase.MyInfo |
Modifier and Type | Field and Description |
---|---|
protected static WebReference[] |
EMPTY_ARRAY |
Constructor and Description |
---|
WebReferencesAnnotatorBase() |
Modifier and Type | Method and Description |
---|---|
void |
apply(PsiFile file,
WebReferencesAnnotatorBase.MyInfo[] infos,
AnnotationHolder holder)
Applies collected annotations to the given annotation holder.
|
WebReferencesAnnotatorBase.MyInfo[] |
collectInformation(PsiFile file) |
protected abstract WebReference [] |
collectWebReferences(PsiFile file) |
WebReferencesAnnotatorBase.MyInfo[] |
doAnnotate(WebReferencesAnnotatorBase.MyInfo[] infos)
Collects full information required for annotation.
|
protected abstract java.lang.String |
getErrorMessage(java.lang.String url) |
protected abstract HighlightDisplayLevel |
getHighlightDisplayLevel(PsiElement context) |
protected IntentionAction [] |
getQuickFixes() |
protected static WebReference |
lookForWebReference(PsiElement element) |
collectInformation, getPairedBatchInspectionShortName
protected static final WebReference[] EMPTY_ARRAY
protected abstract WebReference [] collectWebReferences(PsiFile file)
protected static WebReference lookForWebReference(PsiElement element)
public WebReferencesAnnotatorBase.MyInfo[] collectInformation(PsiFile file)
public WebReferencesAnnotatorBase.MyInfo[] doAnnotate(WebReferencesAnnotatorBase.MyInfo[] infos)
ExternalAnnotator
doAnnotate
in class ExternalAnnotator<WebReferencesAnnotatorBase.MyInfo[],WebReferencesAnnotatorBase.MyInfo[]>
infos
- initial information gathered by ExternalAnnotator.collectInformation(com.intellij.psi.PsiFile)
ExternalAnnotator#apply(PsiFile, AnnotationResultType, AnnotationHolder)
public void apply(PsiFile file, WebReferencesAnnotatorBase.MyInfo[] infos, AnnotationHolder holder)
ExternalAnnotator
apply
in class ExternalAnnotator<WebReferencesAnnotatorBase.MyInfo[],WebReferencesAnnotatorBase.MyInfo[]>
file
- a file to annotateinfos
- annotations collected in ExternalAnnotator#doAnnotate(InitialInfoType)
holder
- a container for receiving annotationsprotected abstract java.lang.String getErrorMessage(java.lang.String url)
protected IntentionAction [] getQuickFixes()
protected abstract HighlightDisplayLevel getHighlightDisplayLevel(PsiElement context)