public class ProblemsHolder
extends java.lang.Object
Constructor and Description |
---|
ProblemsHolder(InspectionManager manager,
PsiFile file,
boolean onTheFly) |
Modifier and Type | Method and Description |
---|---|
PsiFile |
getFile() |
InspectionManager |
getManager() |
Project |
getProject() |
int |
getResultCount() |
java.util.List<ProblemDescriptor> |
getResults() |
ProblemDescriptor [] |
getResultsArray() |
boolean |
hasResults() |
boolean |
isOnTheFly() |
void |
registerProblem(ProblemDescriptor problemDescriptor) |
void |
registerProblem(PsiElement psiElement,
java.lang.String descriptionTemplate,
LocalQuickFix... fixes) |
void |
registerProblem(PsiElement psiElement,
java.lang.String descriptionTemplate,
ProblemHighlightType highlightType,
LocalQuickFix... fixes) |
void |
registerProblem(PsiElement psiElement,
java.lang.String message,
ProblemHighlightType highlightType,
TextRange rangeInElement,
LocalQuickFix... fixes)
Creates highlighter for the specified place in the file.
|
void |
registerProblem(PsiElement psiElement,
TextRange rangeInElement,
java.lang.String message,
LocalQuickFix... fixes) |
void |
registerProblem(PsiReference reference) |
void |
registerProblem(PsiReference reference,
ProblemHighlightType highlightType) |
void |
registerProblem(PsiReference reference,
java.lang.String descriptionTemplate,
ProblemHighlightType highlightType) |
void |
registerProblemForReference(PsiReference reference,
ProblemHighlightType highlightType,
java.lang.String descriptionTemplate,
LocalQuickFix... fixes) |
static java.lang.String |
unresolvedReferenceMessage(PsiReference reference) |
public ProblemsHolder(InspectionManager manager, PsiFile file, boolean onTheFly)
public void registerProblem(PsiElement psiElement, java.lang.String descriptionTemplate, LocalQuickFix... fixes)
public void registerProblem(PsiElement psiElement, java.lang.String descriptionTemplate, ProblemHighlightType highlightType, LocalQuickFix... fixes)
public void registerProblem(ProblemDescriptor problemDescriptor)
public void registerProblem(PsiReference reference, java.lang.String descriptionTemplate, ProblemHighlightType highlightType)
public void registerProblemForReference(PsiReference reference, ProblemHighlightType highlightType, java.lang.String descriptionTemplate, LocalQuickFix... fixes)
public void registerProblem(PsiReference reference)
public void registerProblem(PsiReference reference, ProblemHighlightType highlightType)
public static java.lang.String unresolvedReferenceMessage(PsiReference reference)
public void registerProblem(PsiElement psiElement, TextRange rangeInElement, java.lang.String message, LocalQuickFix... fixes)
public void registerProblem(PsiElement psiElement, java.lang.String message, ProblemHighlightType highlightType, TextRange rangeInElement, LocalQuickFix... fixes)
psiElement
- The highlighter will be created at the text range od this element. This psiElement must be in the current file.message
- Message for this highlighter. Will also serve as a tooltip.highlightType
- The level of highlighter.rangeInElement
- The (sub)range (must be inside (0..psiElement.getTextRange().getLength()) to create highlighter in.
If you want to highlight only part of the supplied psiElement. Pass null otherwise.fixes
- (Optional) fixes to appear for this highlighter.public java.util.List<ProblemDescriptor> getResults()
public ProblemDescriptor [] getResultsArray()
public final InspectionManager getManager()
public boolean hasResults()
public int getResultCount()
public boolean isOnTheFly()
public PsiFile getFile()
public final Project getProject()