public class UnusedSymbolLocalInspectionBase extends AbstractBaseJavaLocalInspectionTool implements UnfairLocalInspectionTool
Modifier and Type | Field and Description |
---|---|
boolean |
CLASS |
boolean |
FIELD |
protected boolean |
INNER_CLASS |
boolean |
LOCAL_VARIABLE |
boolean |
METHOD |
protected java.lang.String |
myClassVisibility |
protected java.lang.String |
myFieldVisibility |
protected java.lang.String |
myInnerClassVisibility |
protected java.lang.String |
myMethodVisibility |
protected java.lang.String |
myParameterVisibility |
boolean |
PARAMETER |
boolean |
REPORT_PARAMETER_FOR_PUBLIC_METHODS |
static java.lang.String |
SHORT_NAME |
static java.lang.String |
UNUSED_ID |
static java.lang.String |
UNUSED_PARAMETERS_SHORT_NAME |
EMPTY_ARRAY, VALID_ID_PATTERN
myNameProvider
Constructor and Description |
---|
UnusedSymbolLocalInspectionBase() |
Modifier and Type | Method and Description |
---|---|
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 |
getClassVisibility() |
java.lang.String |
getFieldVisibility() |
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getID()
If you want to change suppression id you have to define it in XML as well.
|
java.lang.String |
getInnerClassVisibility() |
java.lang.String |
getMethodVisibility() |
java.lang.String |
getParameterVisibility() |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
boolean |
isEnabledByDefault()
DO NOT OVERRIDE this method.
|
boolean |
isIgnoreAccessors() |
void |
readSettings(Element node)
Read in settings from XML config.
|
void |
setClassVisibility(java.lang.String classVisibility) |
void |
setFieldVisibility(java.lang.String fieldVisibility) |
void |
setIgnoreAccessors(boolean ignoreAccessors) |
void |
setInnerClassVisibility(java.lang.String innerClassVisibility) |
void |
setMethodVisibility(java.lang.String methodVisibility) |
void |
setParameterVisibility(java.lang.String parameterVisibility) |
void |
writeSettings(Element node)
Store current settings in XML config.
|
buildVisitor, checkClass, checkField, checkMethod
buildVisitor, checkFile, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFile, runForWholeFile
cleanup, createOptionsPanel, 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
public static final java.lang.String UNUSED_PARAMETERS_SHORT_NAME
public static final java.lang.String UNUSED_ID
public boolean LOCAL_VARIABLE
public boolean FIELD
public boolean METHOD
public boolean CLASS
protected boolean INNER_CLASS
public boolean PARAMETER
public boolean REPORT_PARAMETER_FOR_PUBLIC_METHODS
protected java.lang.String myClassVisibility
protected java.lang.String myInnerClassVisibility
protected java.lang.String myFieldVisibility
protected java.lang.String myMethodVisibility
protected java.lang.String myParameterVisibility
public java.lang.String getClassVisibility()
public java.lang.String getFieldVisibility()
public java.lang.String getMethodVisibility()
public java.lang.String getParameterVisibility()
public java.lang.String getInnerClassVisibility()
public void setInnerClassVisibility(java.lang.String innerClassVisibility)
public void setClassVisibility(java.lang.String classVisibility)
public void setFieldVisibility(java.lang.String fieldVisibility)
public void setMethodVisibility(java.lang.String methodVisibility)
public void setParameterVisibility(java.lang.String parameterVisibility)
public boolean isIgnoreAccessors()
public void setIgnoreAccessors(boolean ignoreAccessors)
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 getID()
LocalInspectionTool
Inspection tool ID is a descriptive name to be used in "suppress" comments and annotations.
It must satisfy LocalInspectionTool.VALID_ID_PATTERN
regexp pattern.
If not defined InspectionProfileEntry.getShortName()
is used as tool ID.
getID
in class LocalInspectionTool
public java.lang.String getAlternativeID()
InspectionProfileEntry
getAlternativeID
in class LocalInspectionTool
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.