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, wait
getSeverity
getDescriptions, getElement, ignoreElement, resolveAllProblemsInElement
protected 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 InspectionToolResultExporter
public RefManager getRefManager()
public SynchronizedBidiMultiMap<RefEntity,CommonProblemDescriptor> getProblemElements()
getProblemElements
in interface InspectionToolResultExporter
protected void writeOutput(CommonProblemDescriptor [] descriptions, RefEntity refElement) throws java.io.IOException
java.io.IOException
public 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 InspectionToolResultExporter
public Project getProject()
getProject
in interface InspectionToolResultExporter
public void exportResults(java.util.function.Consumer<? super Element> resultConsumer, RefEntity refEntity, java.util.function.Predicate<? super CommonProblemDescriptor> isDescriptorExcluded)
exportResults
in interface InspectionToolResultExporter
protected 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 InspectionToolResultExporter
public boolean isExcluded(CommonProblemDescriptor descriptor)
isExcluded
in interface InspectionToolResultExporter
public boolean isExcluded(RefEntity entity)
isExcluded
in interface InspectionToolResultExporter
public void amnesty(RefEntity element)
amnesty
in interface InspectionToolResultExporter
public void exclude(RefEntity element)
exclude
in interface InspectionToolResultExporter
public void amnesty(CommonProblemDescriptor descriptor)
amnesty
in interface InspectionToolResultExporter
public void exclude(CommonProblemDescriptor descriptor)
exclude
in interface InspectionToolResultExporter
public void suppressProblem(CommonProblemDescriptor descriptor)
suppressProblem
in interface InspectionToolResultExporter
public void suppressProblem(RefEntity entity)
suppressProblem
in interface InspectionToolResultExporter
public void updateContent()
updateContent
in interface InspectionToolResultExporter
protected void updateProblemElements()
protected boolean filterResolvedItems()
protected void registerContentEntry(RefEntity element, java.lang.String packageName)
public void addProblemElement(RefEntity refElement, CommonProblemDescriptor... descriptions)
ProblemDescriptionsProcessor
addProblemElement
in interface ProblemDescriptionsProcessor
refElement
- the reference graph node.descriptions
- the descriptors for the problems to register.public void addProblemElement(RefEntity refElement, boolean filterSuppressed, CommonProblemDescriptor... descriptors)
addProblemElement
in interface InspectionToolResultExporter
public java.util.Collection<CommonProblemDescriptor> getProblemDescriptors()
getProblemDescriptors
in interface InspectionToolResultExporter
public void resolveProblem(CommonProblemDescriptor descriptor)
resolveProblem
in interface ProblemDescriptionsProcessor
public boolean isProblemResolved(CommonProblemDescriptor descriptor)
isProblemResolved
in interface InspectionToolResultExporter
public boolean isProblemResolved(RefEntity entity)
isProblemResolved
in interface InspectionToolResultExporter
public java.util.Collection<RefEntity> getResolvedElements()
getResolvedElements
in interface InspectionToolResultExporter
public CommonProblemDescriptor [] getResolvedProblems(RefEntity entity)
getResolvedProblems
in interface InspectionToolResultExporter
public boolean hasReportedProblems()
hasReportedProblems
in interface InspectionToolResultExporter
public java.util.Map<java.lang.String,java.util.Set<RefEntity>> getContent()
getContent
in interface InspectionToolResultExporter