public final class VisibilityInspection extends GlobalJavaBatchInspectionTool
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SHORT_NAME |
boolean |
SUGGEST_FOR_CONSTANTS |
boolean |
SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS |
boolean |
SUGGEST_PACKAGE_LOCAL_FOR_TOP_CLASSES |
boolean |
SUGGEST_PRIVATE_FOR_INNERS |
myNameProvider| Constructor and Description |
|---|
VisibilityInspection() |
| Modifier and Type | Method and Description |
|---|---|
CommonProblemDescriptor [] |
checkElement(RefEntity refEntity,
AnalysisScope scope,
InspectionManager manager,
GlobalInspectionContext globalContext,
ProblemDescriptionsProcessor processor)
Processes and reports problems for a single element of the completed reference graph.
|
void |
compose(java.lang.StringBuilder buf,
RefEntity refEntity,
HTMLComposer composer)
Allows additional description to refEntity problems
|
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getHint(QuickFix fix)
Allows TeamCity plugin to serialize quick fixes on server in order to reconstruct them in idea
|
QuickFix<?> |
getQuickFix(java.lang.String hint)
Allows TeamCity plugin to reconstruct quickfixes from server side data
|
LocalInspectionTool |
getSharedLocalInspectionTool()
Returns the local inspection tool used for highlighting in the editor.
|
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
protected boolean |
queryExternalUsagesRequests(RefManager manager,
GlobalJavaInspectionContext globalContext,
ProblemDescriptionsProcessor processor) |
void |
readSettings(Element node)
Read in settings from XML config.
|
void |
setEntryPointEnabled(java.lang.String entryPointId,
boolean enabled) |
void |
writeSettings(Element node)
Store current settings in XML config.
|
isReadActionNeeded, queryExternalUsagesRequestscheckElement, getAdditionalJobs, getAdditionalJobs, getAnnotator, getSuppressId, isEnabledByDefault, isGraphNeeded, runInspection, worksInBatchModeOnlycleanup, getAlternativeID, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, showDefaultConfigurationOptionspublic boolean SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS
public boolean SUGGEST_PACKAGE_LOCAL_FOR_TOP_CLASSES
public boolean SUGGEST_PRIVATE_FOR_INNERS
public boolean SUGGEST_FOR_CONSTANTS
public static final java.lang.String SHORT_NAME
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntrycreateOptionsPanel in class InspectionProfileEntrynull if no UI options required.public LocalInspectionTool getSharedLocalInspectionTool()
GlobalInspectionToolgetSharedLocalInspectionTool in class GlobalInspectionToolpublic java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortNamepublic CommonProblemDescriptor [] checkElement(RefEntity refEntity, AnalysisScope scope, InspectionManager manager, GlobalInspectionContext globalContext, ProblemDescriptionsProcessor processor)
GlobalInspectionToolcheckElement in class GlobalInspectionToolrefEntity - the reference graph element to check for problems.scope - the scope on which analysis was invoked.manager - the inspection manager instance for the project on which the inspection was run.globalContext - the context for the current global inspection run.processor - the collector for problems reported by the inspectionprotected boolean queryExternalUsagesRequests(RefManager manager, GlobalJavaInspectionContext globalContext, ProblemDescriptionsProcessor processor)
queryExternalUsagesRequests in class GlobalJavaBatchInspectionToolpublic void compose(java.lang.StringBuilder buf,
RefEntity refEntity,
HTMLComposer composer)
GlobalInspectionToolcompose in class GlobalInspectionToolbuf - page content with problem descriptionrefEntity - entity to describecomposer - provides sample api to compose htmlpublic QuickFix<?> getQuickFix(java.lang.String hint)
GlobalInspectionToolgetQuickFix in class GlobalInspectionToolhint - a hint to distinguish different quick fixes for one problempublic java.lang.String getHint(QuickFix fix)
GlobalInspectionToolgetHint in class GlobalInspectionToolfix - fix to be serializedpublic void writeSettings(Element node)
InspectionProfileEntryint TOOL_OPTION)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)) to store your options.writeSettings in class InspectionProfileEntrynode - to store settings to.public void readSettings(Element node)
InspectionProfileEntryint TOOL_OPTION)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)) to store your options.readSettings in class InspectionProfileEntrynode - to read settings from.public void setEntryPointEnabled(java.lang.String entryPointId,
boolean enabled)