public class DefaultInspectionToolResultExporter extends java.lang.Object implements InspectionToolResultExporter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INSPECTION_RESULTS_ATTRIBUTE_KEY_ATTRIBUTE |
static java.lang.String |
INSPECTION_RESULTS_DESCRIPTION_ELEMENT |
static java.lang.String |
INSPECTION_RESULTS_HINT_ELEMENT |
static java.lang.String |
INSPECTION_RESULTS_HINTS_ELEMENT |
static java.lang.String |
INSPECTION_RESULTS_ID_ATTRIBUTE |
static java.lang.String |
INSPECTION_RESULTS_PROBLEM_CLASS_ELEMENT |
static java.lang.String |
INSPECTION_RESULTS_SEVERITY_ATTRIBUTE |
static java.lang.String |
INSPECTION_RESULTS_VALUE_ATTRIBUTE |
protected static Logger |
LOG |
protected java.util.Map<java.lang.String,java.util.Set<RefEntity>> |
myContents |
protected GlobalInspectionContextEx |
myContext |
protected SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> |
myProblemElements |
protected SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> |
myResolvedElements |
protected SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> |
mySuppressedElements |
protected InspectionToolWrapper |
myToolWrapper |
| Constructor and Description |
|---|
DefaultInspectionToolResultExporter(InspectionToolWrapper toolWrapper,
GlobalInspectionContextEx context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProblemElement(RefEntity refElement,
boolean filterSuppressed,
CommonProblemDescriptor... descriptors) |
void |
addProblemElement(RefEntity refElement,
CommonProblemDescriptor... descriptions)
Registers a problem or several problems, with optional quickfixes, for the specified
reference graph node.
|
void |
amnesty(CommonProblemDescriptor descriptor) |
void |
amnesty(RefEntity element) |
void |
exclude(CommonProblemDescriptor descriptor) |
void |
exclude(RefEntity element) |
protected void |
exportResults(CommonProblemDescriptor [] descriptors,
RefEntity refEntity,
java.util.function.Consumer<? super Element> problemSink,
java.util.function.Predicate<? super CommonProblemDescriptor> isDescriptorExcluded) |
void |
exportResults(java.util.function.Consumer<? super Element> resultConsumer,
java.util.function.Predicate<? super RefEntity> excludedEntities,
java.util.function.Predicate<? super CommonProblemDescriptor> excludedDescriptors) |
void |
exportResults(java.util.function.Consumer<? super Element> resultConsumer,
RefEntity refEntity,
java.util.function.Predicate<? super CommonProblemDescriptor> isDescriptorExcluded) |
protected boolean |
filterResolvedItems() |
java.util.Map<java.lang.String,java.util.Set<RefEntity>> |
getContent() |
GlobalInspectionContextEx |
getContext() |
java.util.Collection<CommonProblemDescriptor> |
getProblemDescriptors() |
SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> |
getProblemElements() |
Project |
getProject() |
RefManager |
getRefManager() |
java.util.Collection<RefEntity> |
getResolvedElements() |
CommonProblemDescriptor [] |
getResolvedProblems(RefEntity entity) |
HighlightSeverity |
getSeverity(RefElement element) |
protected java.lang.String |
getSeverityDelegateName() |
InspectionToolWrapper |
getToolWrapper() |
boolean |
hasReportedProblems() |
boolean |
isExcluded(CommonProblemDescriptor descriptor) |
boolean |
isExcluded(RefEntity entity) |
boolean |
isProblemResolved(CommonProblemDescriptor descriptor) |
boolean |
isProblemResolved(RefEntity entity) |
protected void |
registerContentEntry(RefEntity element,
java.lang.String packageName) |
void |
resolveProblem(CommonProblemDescriptor descriptor) |
void |
suppressProblem(CommonProblemDescriptor descriptor) |
void |
suppressProblem(RefEntity entity) |
void |
updateContent() |
protected void |
updateProblemElements() |
protected void |
writeOutput(CommonProblemDescriptor [] descriptions,
RefEntity refElement) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSeveritygetDescriptions, getElement, ignoreElement, resolveAllProblemsInElementprotected static final Logger LOG
public static final java.lang.String INSPECTION_RESULTS_PROBLEM_CLASS_ELEMENT
public static final java.lang.String INSPECTION_RESULTS_SEVERITY_ATTRIBUTE
public static final java.lang.String INSPECTION_RESULTS_ATTRIBUTE_KEY_ATTRIBUTE
public static final java.lang.String INSPECTION_RESULTS_ID_ATTRIBUTE
public static final java.lang.String INSPECTION_RESULTS_DESCRIPTION_ELEMENT
public static final java.lang.String INSPECTION_RESULTS_HINTS_ELEMENT
public static final java.lang.String INSPECTION_RESULTS_HINT_ELEMENT
public static final java.lang.String INSPECTION_RESULTS_VALUE_ATTRIBUTE
protected final InspectionToolWrapper myToolWrapper
protected final GlobalInspectionContextEx myContext
protected final SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> myProblemElements
protected final SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> mySuppressedElements
protected final SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> myResolvedElements
protected final java.util.Map<java.lang.String,java.util.Set<RefEntity>> myContents
public DefaultInspectionToolResultExporter(InspectionToolWrapper toolWrapper, GlobalInspectionContextEx context)
public InspectionToolWrapper getToolWrapper()
getToolWrapper in interface InspectionToolResultExporterpublic RefManager getRefManager()
public SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> getProblemElements()
getProblemElements in interface InspectionToolResultExporterprotected void writeOutput(CommonProblemDescriptor [] descriptions, RefEntity refElement) throws java.io.IOException
java.io.IOExceptionpublic void exportResults(java.util.function.Consumer<? super Element> resultConsumer,
java.util.function.Predicate<? super RefEntity> excludedEntities,
java.util.function.Predicate<? super CommonProblemDescriptor> excludedDescriptors)
exportResults in interface InspectionToolResultExporterpublic Project getProject()
getProject in interface InspectionToolResultExporterpublic void exportResults(java.util.function.Consumer<? super Element> resultConsumer,
RefEntity refEntity,
java.util.function.Predicate<? super CommonProblemDescriptor> isDescriptorExcluded)
exportResults in interface InspectionToolResultExporterprotected void exportResults(CommonProblemDescriptor [] descriptors, RefEntity refEntity, java.util.function.Consumer<? super Element> problemSink, java.util.function.Predicate<? super CommonProblemDescriptor> isDescriptorExcluded)
protected java.lang.String getSeverityDelegateName()
public GlobalInspectionContextEx getContext()
public HighlightSeverity getSeverity(RefElement element)
getSeverity in interface InspectionToolResultExporterpublic boolean isExcluded(CommonProblemDescriptor descriptor)
isExcluded in interface InspectionToolResultExporterpublic boolean isExcluded(RefEntity entity)
isExcluded in interface InspectionToolResultExporterpublic void amnesty(RefEntity element)
amnesty in interface InspectionToolResultExporterpublic void exclude(RefEntity element)
exclude in interface InspectionToolResultExporterpublic void amnesty(CommonProblemDescriptor descriptor)
amnesty in interface InspectionToolResultExporterpublic void exclude(CommonProblemDescriptor descriptor)
exclude in interface InspectionToolResultExporterpublic void suppressProblem(CommonProblemDescriptor descriptor)
suppressProblem in interface InspectionToolResultExporterpublic void suppressProblem(RefEntity entity)
suppressProblem in interface InspectionToolResultExporterpublic void updateContent()
updateContent in interface InspectionToolResultExporterprotected void updateProblemElements()
protected boolean filterResolvedItems()
protected void registerContentEntry(RefEntity element, java.lang.String packageName)
public void addProblemElement(RefEntity refElement, CommonProblemDescriptor... descriptions)
ProblemDescriptionsProcessoraddProblemElement in interface ProblemDescriptionsProcessorrefElement - the reference graph node.descriptions - the descriptors for the problems to register.public void addProblemElement(RefEntity refElement, boolean filterSuppressed, CommonProblemDescriptor... descriptors)
addProblemElement in interface InspectionToolResultExporterpublic java.util.Collection<CommonProblemDescriptor> getProblemDescriptors()
getProblemDescriptors in interface InspectionToolResultExporterpublic void resolveProblem(CommonProblemDescriptor descriptor)
resolveProblem in interface ProblemDescriptionsProcessorpublic boolean isProblemResolved(CommonProblemDescriptor descriptor)
isProblemResolved in interface InspectionToolResultExporterpublic boolean isProblemResolved(RefEntity entity)
isProblemResolved in interface InspectionToolResultExporterpublic java.util.Collection<RefEntity> getResolvedElements()
getResolvedElements in interface InspectionToolResultExporterpublic CommonProblemDescriptor [] getResolvedProblems(RefEntity entity)
getResolvedProblems in interface InspectionToolResultExporterpublic boolean hasReportedProblems()
hasReportedProblems in interface InspectionToolResultExporterpublic java.util.Map<java.lang.String,java.util.Set<RefEntity>> getContent()
getContent in interface InspectionToolResultExporter