public class JavaDocLocalInspection extends LocalInspectionTool
Modifier and Type | Class and Description |
---|---|
static class |
JavaDocLocalInspection.Options |
Modifier and Type | Field and Description |
---|---|
JavaDocLocalInspection.Options |
FIELD_OPTIONS |
boolean |
IGNORE_DEPRECATED |
boolean |
IGNORE_DUPLICATED_THROWS
Deprecated.
|
boolean |
IGNORE_JAVADOC_PERIOD |
boolean |
IGNORE_POINT_TO_ITSELF |
JavaDocLocalInspection.Options |
INNER_CLASS_OPTIONS |
JavaDocLocalInspection.Options |
METHOD_OPTIONS |
protected JavaDocLocalInspection.Options |
MODULE_OPTIONS |
java.lang.String |
myAdditionalJavadocTags |
protected static java.lang.String |
NONE |
protected static java.lang.String |
PACKAGE_LOCAL |
protected JavaDocLocalInspection.Options |
PACKAGE_OPTIONS |
protected static java.lang.String |
PRIVATE |
protected static java.lang.String |
PROTECTED |
protected static java.lang.String |
PUBLIC |
static java.lang.String |
SHORT_NAME |
JavaDocLocalInspection.Options |
TOP_LEVEL_CLASS_OPTIONS |
EMPTY_ARRAY, VALID_ID_PATTERN
myNameProvider
Constructor and Description |
---|
JavaDocLocalInspection() |
Modifier and Type | Method and Description |
---|---|
PsiElementVisitor |
buildVisitor(ProblemsHolder holder,
boolean isOnTheFly)
Override the method to provide your own inspection visitor.
|
protected LocalQuickFix |
createAddJavadocFix(PsiElement nameIdentifier,
boolean isOnTheFly) |
protected LocalQuickFix |
createAddMissingParamTagFix(java.lang.String name,
boolean isOnTheFly) |
protected LocalQuickFix |
createAddMissingTagFix(java.lang.String tag,
java.lang.String value,
boolean isOnTheFly) |
javax.swing.JComponent |
createOptionsPanel()
This method is called each time UI is shown.
|
protected LocalQuickFix |
createRegisterTagFix(java.lang.String tag,
boolean isOnTheFly) |
java.lang.String |
getAlternativeID()
For global tools read-only, for local tools would be used instead getID for modules with alternative classpath storage
|
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
boolean |
isEnabledByDefault()
DO NOT OVERRIDE this method.
|
boolean |
isIgnoreDuplicatedThrows() |
boolean |
isIgnoreSimpleAccessors() |
protected static boolean |
isTagRequired(JavaDocLocalInspection.Options options,
java.lang.String tag) |
void |
readSettings(Element node)
Read in settings from XML config.
|
void |
registerAdditionalTag(java.lang.String tag) |
void |
setIgnoreDuplicatedThrows(boolean ignoreDuplicatedThrows) |
void |
setIgnoreEmptyDescriptions(boolean ignoreEmptyDescriptions) |
void |
setIgnoreSimpleAccessors(boolean ignoreSimpleAccessors) |
void |
setPackageOption(java.lang.String modifier,
java.lang.String tags) |
void |
writeSettings(Element node)
Store current settings in XML config.
|
buildVisitor, checkFile, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFile
cleanup, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isInitialized, isSuppressedFor, loadDescription, showDefaultConfigurationOptions
public static final java.lang.String SHORT_NAME
protected static final java.lang.String NONE
protected static final java.lang.String PACKAGE_LOCAL
protected static final java.lang.String PUBLIC
protected static final java.lang.String PROTECTED
protected static final java.lang.String PRIVATE
protected final JavaDocLocalInspection.Options PACKAGE_OPTIONS
protected final JavaDocLocalInspection.Options MODULE_OPTIONS
public JavaDocLocalInspection.Options TOP_LEVEL_CLASS_OPTIONS
public JavaDocLocalInspection.Options INNER_CLASS_OPTIONS
public JavaDocLocalInspection.Options METHOD_OPTIONS
public JavaDocLocalInspection.Options FIELD_OPTIONS
public boolean IGNORE_DEPRECATED
public boolean IGNORE_JAVADOC_PERIOD
@Deprecated public boolean IGNORE_DUPLICATED_THROWS
public boolean IGNORE_POINT_TO_ITSELF
public java.lang.String myAdditionalJavadocTags
public javax.swing.JComponent createOptionsPanel()
InspectionProfileEntry
createOptionsPanel
in class InspectionProfileEntry
null
if no UI options required.protected LocalQuickFix createAddJavadocFix(PsiElement nameIdentifier, boolean isOnTheFly)
protected LocalQuickFix createAddMissingTagFix(java.lang.String tag, java.lang.String value, boolean isOnTheFly)
protected LocalQuickFix createAddMissingParamTagFix(java.lang.String name, boolean isOnTheFly)
protected LocalQuickFix createRegisterTagFix(java.lang.String tag, boolean isOnTheFly)
public void setPackageOption(java.lang.String modifier, java.lang.String tags)
public void registerAdditionalTag(java.lang.String tag)
public boolean isIgnoreDuplicatedThrows()
public void setIgnoreDuplicatedThrows(boolean ignoreDuplicatedThrows)
public void setIgnoreEmptyDescriptions(boolean ignoreEmptyDescriptions)
public boolean isIgnoreSimpleAccessors()
public void setIgnoreSimpleAccessors(boolean ignoreSimpleAccessors)
public boolean isEnabledByDefault()
InspectionProfileEntry
isEnabledByDefault
in class InspectionProfileEntry
InspectionEP.enabledByDefault
public void writeSettings(Element node) throws WriteExternalException
InspectionProfileEntry
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.writeSettings
in class InspectionProfileEntry
node
- to store settings to.WriteExternalException
public void readSettings(Element node) throws InvalidDataException
InspectionProfileEntry
int TOOL_OPTION
)
and bean-style getters/setters (like int getToolOption(), void setToolOption(int)
) to store your options.readSettings
in class InspectionProfileEntry
node
- to read settings from.InvalidDataException
- if the loaded data was not valid.public PsiElementVisitor buildVisitor(ProblemsHolder holder, boolean isOnTheFly)
LocalInspectionTool
PsiRecursiveElementVisitor
)
since it will be fed with every element in the file anyway.
Visitor created must be thread-safe since it might be called on several elements concurrently.buildVisitor
in class LocalInspectionTool
holder
- where visitor will register problems found.isOnTheFly
- true if inspection was run in non-batch modePsiRecursiveVisitor
public java.lang.String getGroupDisplayName()
getGroupDisplayName
in class InspectionProfileEntry
InspectionEP.groupDisplayName
,
InspectionEP.groupKey
,
InspectionEP.groupBundle
public java.lang.String getShortName()
InspectionProfileEntry
getShortName
in class InspectionProfileEntry
InspectionEP.shortName
public java.lang.String getAlternativeID()
InspectionProfileEntry
getAlternativeID
in class LocalInspectionTool
protected static boolean isTagRequired(JavaDocLocalInspection.Options options, java.lang.String tag)